-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli):
tk env list
for inline envs
- Loading branch information
Showing
4 changed files
with
134 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package tanka | ||
|
||
import "fmt" | ||
|
||
// ErrNoEnv means that the given jsonnet has no Environment object | ||
// This must not be fatal, some operations work without | ||
type ErrNoEnv struct { | ||
path string | ||
} | ||
|
||
func (e ErrNoEnv) Error() string { | ||
return fmt.Sprintf("unable to find an Environment in '%s'", e.path) | ||
} | ||
|
||
// ErrMultipleEnvs means that the given jsonnet has multiple Environment objects | ||
type ErrMultipleEnvs struct { | ||
path string | ||
} | ||
|
||
func (e ErrMultipleEnvs) Error() string { | ||
return fmt.Sprintf("found multiple Environments in '%s'", e.path) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters