Skip to content

Commit

Permalink
Add shorthand flags for weep list (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydhulia authored Dec 6, 2021
1 parent 7618bb4 commit acd1c5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ func init() {
listCmd.PersistentFlags().BoolVarP(&extendedInfo, "extended-info", "e", false, "include additional information about roles such as associated apps")
listCmd.PersistentFlags().BoolVarP(&shortInfo, "short-info", "s", false, "only display the role ARNs")
listCmd.PersistentFlags().StringVarP(&accountFilter, "account", "a", "", "filter by aws account number or account name")
listCmd.PersistentFlags().BoolVar(&showAll, "all", true, "show user profiles as well as instance profiles")
listCmd.PersistentFlags().BoolVar(&showInstanceProfilesOnly, "instance", false, "show only instance roles")
listCmd.PersistentFlags().BoolVar(&showConfiguredProfilesOnly, "profiles", false, "show only configured roles")
listCmd.PersistentFlags().BoolVarP(&showAll, "all", "A", true, "show all available roles (default option)")
listCmd.PersistentFlags().BoolVarP(&showInstanceProfilesOnly, "instance", "i", false, "show only instance roles")
listCmd.PersistentFlags().BoolVarP(&showConfiguredProfilesOnly, "profiles", "p", false, "show only configured roles")
rootCmd.AddCommand(listCmd)
}

Expand Down

0 comments on commit acd1c5e

Please sign in to comment.