Documentation ¶
Overview ¶
Package flags configures and reads global ("persistent") flags and flags that are used by multiple commands.
Index ¶
- func FromSource(cmd *cobra.Command) (source string, noResolve bool, _ error)
- func IsInteractive(cmd *cobra.Command) bool
- func IsVerbose(cmd *cobra.Command) bool
- func SetupFromSource(cmd *cobra.Command, con *imbue.Container)
- func SetupNoInteractive(cmd *cobra.Command)
- func SetupShellExecutorOutput(cmd *cobra.Command)
- func SetupSocket(cmd *cobra.Command)
- func SetupVerbose(cmd *cobra.Command)
- func ShellExecutorOutputFile(cmd *cobra.Command) (string, bool)
- func Socket(cmd *cobra.Command) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromSource ¶
FromSource returns the source name passed via --from-source. It returns an empty string if --from-source is omitted.
func IsInteractive ¶
IsInteractive returns true if cmd allows interactive prompts.
func SetupFromSource ¶
SetupFromSource sets up the --from-source (and --no-resolve) flags used by commands that resolve query strings to repositories.
func SetupNoInteractive ¶
SetupNoInteractive sets up the --no-interaction flag on the root command.
func SetupShellExecutorOutput ¶
SetupShellExecutorOutput sets up --shell-executor-output flag on the root command.
func SetupSocket ¶
SetupSocket sets up the --socket flag on the root command.
func SetupVerbose ¶
SetupVerbose sets up the --verbose flag on the root command.
func ShellExecutorOutputFile ¶
ShellExecutorOutputFile returns the path to the file that the shell.Executor should write its command to, if any.
Types ¶
This section is empty.