gofmt
This commit is contained in:
parent
8f9ef4402b
commit
ed30bd7b76
1 changed files with 24 additions and 20 deletions
|
@ -6,8 +6,8 @@ import (
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/restic/restic/internal/restic"
|
|
||||||
"github.com/restic/restic/internal/errors"
|
"github.com/restic/restic/internal/errors"
|
||||||
|
"github.com/restic/restic/internal/restic"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -101,12 +101,16 @@ func runForget(opts ForgetOptions, gopts GlobalOptions, args []string) error {
|
||||||
GroupOptionList = strings.Split(opts.GroupBy, ",")
|
GroupOptionList = strings.Split(opts.GroupBy, ",")
|
||||||
|
|
||||||
for _, option := range GroupOptionList {
|
for _, option := range GroupOptionList {
|
||||||
switch( option ) {
|
switch option {
|
||||||
case "host": GroupByHost = true
|
case "host":
|
||||||
case "paths": GroupByPath = true
|
GroupByHost = true
|
||||||
case "tags": GroupByTag = true
|
case "paths":
|
||||||
|
GroupByPath = true
|
||||||
|
case "tags":
|
||||||
|
GroupByTag = true
|
||||||
case "":
|
case "":
|
||||||
default: return errors.Fatal( "unknown grouping option: '" + option + "'" )
|
default:
|
||||||
|
return errors.Fatal("unknown grouping option: '" + option + "'")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue