commands: add 'import' git-lfs-migrate(1) subcommand

This commit is contained in:
Taylor Blau 2017-06-21 10:43:56 -06:00
parent cdd17d024e
commit 9916dedd26
2 changed files with 10 additions and 1 deletions

@ -211,6 +211,8 @@ func init() {
info.Flags().StringVar(&migrateInfoAboveFmt, "above", "1mb", "--above=<n>")
info.Flags().StringVar(&migrateInfoUnitFmt, "unit", "", "--unit=<unit>")
importCmd := NewCommand("import", migrateImportCommand)
RegisterCommand("migrate", nil, func(cmd *cobra.Command) {
// Adding flags directly to cmd.Flags() doesn't apply those
// flags to any subcommands of the root. Therefore, loop through
@ -221,7 +223,7 @@ func init() {
// `git-lfs-migrate(1)` command as a subcommand (child).
for _, subcommand := range []*cobra.Command{
info,
importCmd, info,
} {
subcommand.Flags().StringVarP(&includeArg, "include", "I", "", "Include a list of paths")
subcommand.Flags().StringVarP(&excludeArg, "exclude", "X", "", "Exclude a list of paths")

@ -0,0 +1,7 @@
package commands
import "github.com/spf13/cobra"
func migrateImportCommand(cmd *cobra.Command, args []string) {
}