Documentation ¶
Index ¶
- Variables
- func AddCommand(app *kingpin.Application, input AddCommandInput)
- func ConfigureAddCommand(app *kingpin.Application)
- func ConfigureEditCommand(app *kingpin.Application)
- func ConfigureExecCommand(app *kingpin.Application)
- func ConfigureGlobals(app *kingpin.Application)
- func ConfigureListCommand(app *kingpin.Application)
- func ConfigureRemoveCommand(app *kingpin.Application)
- func EditCommand(app *kingpin.Application, input EditCommandInput)
- func ExecCommand(app *kingpin.Application, input ExecCommandInput)
- func LsCommand(app *kingpin.Application, input LsCommandInput)
- func RemoveCommand(app *kingpin.Application, input RemoveCommandInput)
- type AddCommandInput
- type EditCommandInput
- type ExecCommandInput
- type LsCommandInput
- type RemoveCommandInput
Examples ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AddCommand ¶
func AddCommand(app *kingpin.Application, input AddCommandInput)
func ConfigureAddCommand ¶
func ConfigureAddCommand(app *kingpin.Application)
func ConfigureEditCommand ¶
func ConfigureEditCommand(app *kingpin.Application)
func ConfigureExecCommand ¶
func ConfigureExecCommand(app *kingpin.Application)
func ConfigureGlobals ¶
func ConfigureGlobals(app *kingpin.Application)
func ConfigureListCommand ¶
func ConfigureListCommand(app *kingpin.Application)
func ConfigureRemoveCommand ¶
func ConfigureRemoveCommand(app *kingpin.Application)
func EditCommand ¶
func EditCommand(app *kingpin.Application, input EditCommandInput)
func ExecCommand ¶
func ExecCommand(app *kingpin.Application, input ExecCommandInput)
Example ¶
keyringImpl = keyring.NewArrayKeyring([]keyring.Item{ {Key: "llamas", Data: []byte(`{"ENV_VAR1":"ABC","ENV_VAR2":"XYZ"}`)}, }) app := kingpin.New("env-vault", "") ConfigureGlobals(app) ConfigureExecCommand(app) kingpin.MustParse(app.Parse([]string{ "--debug", "exec", "llamas", "--", "sh", "-c", "echo $ENV_VAR1", }))
Output: ABC
func LsCommand ¶
func LsCommand(app *kingpin.Application, input LsCommandInput)
Example ¶
keyringImpl = keyring.NewArrayKeyring([]keyring.Item{ {Key: "llamas", Data: []byte(`{"ENV_VAR1":"ABC","ENV_VAR2":"XYZ"}`)}, }) app := kingpin.New(`env-vault`, ``) ConfigureGlobals(app) ConfigureListCommand(app) kingpin.MustParse(app.Parse([]string{ "list", }))
Output: llamas
func RemoveCommand ¶
func RemoveCommand(app *kingpin.Application, input RemoveCommandInput)
Types ¶
type AddCommandInput ¶
type EditCommandInput ¶
type ExecCommandInput ¶
type LsCommandInput ¶
type RemoveCommandInput ¶
Click to show internal directories.
Click to hide internal directories.