Documentation
¶
Overview ¶
Package commands implements the CLI command structure using Cobra.
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 ¶
func GetModel ¶
func GetModel() string
GetModel returns the effective model ID (flag or config default).
func GetProvider ¶
func GetProvider() string
GetProvider returns the effective provider ID (flag or config default).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.