Skip to content

Commit

Permalink
Removing unnecessary short shorthand and refactoring var type
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Kulash committed Jan 26, 2021
1 parent d433a42 commit ad6379f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cli/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func deleteRulesCmd(cli *cli) *cobra.Command {
auth0 rules delete --id "12345"`,
RunE: func(cmd *cobra.Command, args []string) error {
r := &management.Rule{ID: &flags.id}

// TODO: Should add validation of rule
// TODO: Would be nice to prompt user confirmation before proceeding with delete

Expand All @@ -113,7 +113,7 @@ func deleteRulesCmd(cli *cli) *cobra.Command {
},
}

cmd.Flags().StringVarP(&flags.id, "id", "i", "", "ID of the rule to delete (required)")
cmd.Flags().StringVar(&flags.id, "id", "", "ID of the rule to delete (required)")

return cmd
}

0 comments on commit ad6379f

Please sign in to comment.