fix: app autocomplete for secret commands

This commit is contained in:
decentral1se 2022-01-04 12:24:37 +01:00
parent 10e4a8b97f
commit 0c2f6fb676
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 18 additions and 15 deletions

View File

@ -32,6 +32,7 @@ var appSecretGenerateCommand = &cli.Command{
Usage: "Generate secrets",
ArgsUsage: "<secret> <version>",
Flags: []cli.Flag{allSecretsFlag, internal.PassFlag},
BashComplete: autocomplete.AppNameComplete,
Action: func(c *cli.Context) error {
app := internal.ValidateApp(c)
@ -100,6 +101,7 @@ var appSecretInsertCommand = &cli.Command{
Usage: "Insert secret",
Flags: []cli.Flag{internal.PassFlag},
ArgsUsage: "<app> <secret-name> <version> <data>",
BashComplete: autocomplete.AppNameComplete,
Description: `
This command inserts a secret into an app environment.
@ -144,6 +146,7 @@ var appSecretRmCommand = &cli.Command{
Aliases: []string{"rm"},
Flags: []cli.Flag{allSecretsFlag, internal.PassFlag},
ArgsUsage: "<app> <secret-name>",
BashComplete: autocomplete.AppNameComplete,
Description: `
This command removes a secret from an app environment.