Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SetCmd = &cobra.Command{ Use: "set <environment name>", Aliases: []string{"switch", "use"}, Short: "Switch to another environment", Long: `Switch to another environment. Environments may be one of those: dev(elopment), stg/staging, prod(uction) or etc.`, Run: func(cmd *cobra.Command, args []string) { if err := env.Set(args[0]); err != nil { panic(err) } env, err := env.Get() if err != nil { panic(err) } fmt.Printf("Environment is now: %s", env) }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.