commands/migrate: use varargs variant of AddCommand
This commit is contained in:
parent
c1baf755e2
commit
58bfe112af
@ -248,10 +248,6 @@ func init() {
|
||||
cmd.PersistentFlags().StringSliceVar(&migrateExcludeRefs, "exclude-ref", nil, "An explicit list of refs to exclude")
|
||||
cmd.PersistentFlags().BoolVar(&migrateEverything, "everything", false, "Migrate all local references")
|
||||
|
||||
for _, subcommand := range []*cobra.Command{
|
||||
importCmd, info,
|
||||
} {
|
||||
cmd.AddCommand(subcommand)
|
||||
}
|
||||
cmd.AddCommand(importCmd, info)
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user