Skip to content

Commit

Permalink
Fix linter complaint
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Doan <andy@foundries.io>
  • Loading branch information
doanac committed Aug 24, 2021
1 parent ea2ab78 commit 7b4adf0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,17 @@ $ fioctl completion zsh > "${fpath[1]}/_fioctl"
Run: func(cmd *cobra.Command, args []string) {
switch args[0] {
case "bash":
cmd.Root().GenBashCompletion(os.Stdout)
if err := cmd.Root().GenBashCompletion(os.Stdout); err != nil {
logrus.Fatal(err)
}
case "zsh":
cmd.Root().GenZshCompletion(os.Stdout)
if err := cmd.Root().GenZshCompletion(os.Stdout); err != nil {
logrus.Fatal(err)
}
case "powershell":
cmd.Root().GenPowerShellCompletion(os.Stdout)
if err := cmd.Root().GenPowerShellCompletion(os.Stdout); err != nil {
logrus.Fatal(err)
}
}
},
}

0 comments on commit 7b4adf0

Please sign in to comment.