Skip to content

Commit ad11dd7

Browse files
committed
Renamed groups property to grouped
Fixed some missing spaces in strings
1 parent 91a9fcb commit ad11dd7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

cmd/list.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import (
1212
)
1313

1414
type listOptions struct {
15-
all bool
16-
groups bool
17-
tags []string
15+
all bool
16+
grouped bool
17+
tags []string
1818
}
1919

2020
func (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 {

config/resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (a *Annotations) CategoryTags() []string {
4242
func (a *Annotations) ValidateDescription() error {
4343
if a.Description != "" && a.Annotations.Description != "" {
4444
return errors.Errorf(
45-
"deprecated description will be ignored in" +
45+
"deprecated description will be ignored in " +
4646
"favor of annotations.description")
4747
}
4848
if a.Description != "" {

0 commit comments

Comments
 (0)