commands/migrate: use varargs variant of AddCommand

This commit is contained in:
Taylor Blau 2017-09-08 14:15:04 -04:00
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)
})
}