Documentation
¶
Index ¶
- Constants
- func CheckForce(cmd *cobra.Command, msg string) bool
- func ConfirmAction(msg string) bool
- func ConfirmDefaultYes(msg string) bool
- func GetActiveProfileName(cmd *cobra.Command) string
- func GetClient(cmd *cobra.Command) *api.Client
- func IsJSON(cmd *cobra.Command) bool
- func StdinIsTerminal() bool
Constants ¶
View Source
const ( ClientKey contextKey = "api-client" ActiveProfileKey contextKey = "active-profile" )
Variables ¶
This section is empty.
Functions ¶
func ConfirmAction ¶
func ConfirmDefaultYes ¶ added in v1.6.0
ConfirmDefaultYes asks a yes/no question where Enter means yes.
func GetActiveProfileName ¶ added in v1.2.0
func StdinIsTerminal ¶ added in v1.6.0
func StdinIsTerminal() bool
StdinIsTerminal reports whether stdin is interactive.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.