Documentation ¶
Overview ¶
Package cliutil contains methods used across all cli commands @todo: get rid of os.Exits and use errors instread
Index ¶
- Constants
- func AddEnv(env Env) error
- func CLIProxyAddress(ctx *cli.Context) (string, error)
- func CliError(err error) cli.ExitCoder
- func DelEnv(ctx *cli.Context, envName string) error
- func IsBuiltInService(command string) bool
- func IsPlatform(ctx *cli.Context) bool
- func Print(e Exec) func(*cli.Context) error
- func SetEnv(envName string) error
- type Env
- type Exec
Constants ¶
View Source
const ( // EnvLocal is a builtin environment, it represents your local `micro server` EnvLocal = "local" // EnvPlatform is a builtin highly available environment in the cloud, EnvPlatform = "platform" )
Variables ¶
This section is empty.
Functions ¶
func CLIProxyAddress ¶
CLIProxyAddress returns the proxy address which should be set for the client
func CliError ¶
func CliError(err error) cli.ExitCoder
CliError returns a user friendly message from error. If we can't determine a good one returns an error with code 128
func IsBuiltInService ¶
func IsPlatform ¶
func IsPlatform(ctx *cli.Context) bool
Types ¶
Click to show internal directories.
Click to hide internal directories.