package
0.0.0-20240128222815-57fe098d044a
Repository: https://github.com/gritcli/grit.git
Documentation: pkg.go.dev
# Functions
FromSource returns the source name passed via --from-source.
IsInteractive returns true if cmd allows interactive prompts.
IsVerbose returns true if the --verbose flag was set.
SetupFromSource sets up the --from-source (and --no-resolve) flags used by commands that resolve query strings to repositories.
SetupNoInteractive sets up the --no-interaction flag on the root command.
SetupShellExecutorOutput sets up --shell-executor-output flag on the root command.
SetupSocket sets up the --socket flag on the root command.
SetupVerbose sets up the --verbose flag on the root command.
ShellExecutorOutputFile returns the path to the file that the shell.Executor should write its command to, if any.
Socket returns the path to the Unix socket address of the Grit daemon.