Documentation
¶
Overview ¶
Package cli implements the "config set-vault|get-vault|unset-vault" subcommand. RunConfig returns an exit code and writes to the given stdout/stderr writers instead of calling os.Exit or using the process's streams directly, so it stays a plain, easily testable function.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunConfig ¶
RunConfig dispatches "sync82 config <subcommand> [args...]", where args holds the arguments after "config" and the subcommand is one of set-vault, get-vault or unset-vault. Normal output goes to stdout and diagnostics to stderr. It returns the process exit code: 0 on success, 1 for a failing subcommand, and 2 (usage error) for an unknown or missing subcommand, a missing set-vault path or unexpected arguments.
Types ¶
This section is empty.