Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update module github.com/hashicorp/vault to v1.14.0 [security] #4427

Merged
5 changes: 3 additions & 2 deletions cmd/completions.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package cmd

import (
"github.com/spf13/cobra"
"os"

"github.com/spf13/cobra"
)

// CommandLineCompletionCommand allows to generate convenience scripts for using the piper cli in a shell.
Expand Down Expand Up @@ -44,7 +45,7 @@ $ piper completion fish > ~/.config/fish/completions/piper.fish
`,
DisableFlagsInUseLine: true,
ValidArgs: []string{"bash", "zsh", "fish", "powershell"},
Args: cobra.ExactValidArgs(1),
Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
Run: func(cmd *cobra.Command, args []string) {
switch args[0] {
case "bash":
Expand Down
Loading
Loading