Documentation
¶
Overview ¶
Package commands implements the CLI command tree and runtime wiring.
Index ¶
Constants ¶
View Source
const ( ExitSuccess = 0 ExitValidation = 1 ExitProvider = 2 ExitNetwork = 3 )
Exit codes.
Variables ¶
View Source
var ( // Version is the semantic version of the CLI. Version = "dev" // Commit is the git commit hash. Commit = "unknown" // BuildDate is the date when the binary was built. BuildDate = "unknown" )
Version information set at build time via ldflags. Example: go build -ldflags "-X github.com/petal-labs/iris/cli/commands.Version=v1.0.0"
Functions ¶
Types ¶
type App ¶ added in v0.12.0
type App struct {
// contains filtered or unexported fields
}
App holds CLI state and runtime dependencies.
type AppOption ¶ added in v0.12.0
type AppOption func(*App)
AppOption customizes App dependencies.
func WithConfigLoader ¶ added in v0.12.0
func WithConfigLoader(loader ConfigLoader) AppOption
WithConfigLoader injects a config loader dependency.
func WithKeystoreFactory ¶ added in v0.12.0
func WithKeystoreFactory(factory KeystoreFactory) AppOption
WithKeystoreFactory injects a keystore factory dependency.
func WithProviderFactory ¶ added in v0.12.0
func WithProviderFactory(factory ProviderFactory) AppOption
WithProviderFactory injects a provider factory dependency.
type ConfigLoader ¶ added in v0.12.0
ConfigLoader loads CLI config from a path.
type KeystoreFactory ¶ added in v0.12.0
KeystoreFactory creates a keystore instance.
Click to show internal directories.
Click to hide internal directories.