Skip to content

Commit

Permalink
chore(newrelic): Minor error refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Thurman committed Mar 10, 2020
1 parent 55b82e3 commit 2693afa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmd/newrelic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
"github.com/newrelic/newrelic-cli/internal/credentials"
"github.com/newrelic/newrelic-cli/internal/entities"
"github.com/newrelic/newrelic-cli/internal/nerdgraph"

"github.com/newrelic/newrelic-cli/internal/utils"
)

var (
Expand All @@ -22,10 +24,7 @@ func init() {

Command.AddCommand(completionCmd)
completionCmd.Flags().StringVar(&completionShell, "shell", "", "Output completion for the specified shell. (bash, powershell, zsh)")
err := completionCmd.MarkFlagRequired("shell")
if err != nil {
log.Error(err)
}
utils.LogIfError(completionCmd.MarkFlagRequired("shell"))

// Bind imported sub-commands
Command.AddCommand(entities.Command)
Expand Down

0 comments on commit 2693afa

Please sign in to comment.