@@ -12,9 +12,9 @@ import (
1212)
1313
1414type listOptions struct {
15- all bool
16- groups bool
17- tags []string
15+ all bool
16+ grouped bool
17+ tags []string
1818}
1919
2020func (o listOptions ) tagMatch (tags []string ) bool {
@@ -42,8 +42,8 @@ func newListCommand(opts *dobiOptions) *cobra.Command {
4242 & listOpts .all , "all" , "a" , false ,
4343 "List all resources, including those without descriptions" )
4444 flags .BoolVarP (
45- & listOpts .groups , "groups " , "g" , false ,
46- "List resources sorted by their matching tags . Only resources" +
45+ & listOpts .grouped , "grouped " , "g" , false ,
46+ "List resources grouped by tag . Only resources " +
4747 "with configured tags will be listed." )
4848 flags .StringSliceVarP (
4949 & listOpts .tags , "tags" , "t" , nil ,
@@ -59,7 +59,7 @@ func runList(opts *dobiOptions, listOpts listOptions) error {
5959
6060 tags := getTags (conf .Resources )
6161 var descriptions []string
62- if listOpts .groups {
62+ if listOpts .grouped {
6363 resources := filterResourcesTags (conf , listOpts )
6464 descriptions = getDescriptionsByTag (resources )
6565 } else {
0 commit comments