mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-20 03:00:43 -05:00
dolt rm and dolt mv want to join the party
This commit is contained in:
@@ -94,5 +94,5 @@ func (cmd CpCmd) Exec(ctx context.Context, commandStr string, args []string, dEn
|
||||
fmt.Sprintf("--%s", commands.BatchFlag),
|
||||
fmt.Sprintf(`--%s`, commands.QueryFlag),
|
||||
queryStr,
|
||||
}, dEnv, nil)
|
||||
}, dEnv, cliCtx)
|
||||
}
|
||||
|
||||
@@ -95,5 +95,5 @@ func (cmd MvCmd) Exec(ctx context.Context, commandStr string, args []string, dEn
|
||||
fmt.Sprintf("--%s", commands.BatchFlag),
|
||||
fmt.Sprintf(`--%s`, commands.QueryFlag),
|
||||
queryStr,
|
||||
}, dEnv, nil)
|
||||
}, dEnv, cliCtx)
|
||||
}
|
||||
|
||||
@@ -93,5 +93,5 @@ func (cmd RmCmd) Exec(ctx context.Context, commandStr string, args []string, dEn
|
||||
fmt.Sprintf("--%s", commands.BatchFlag),
|
||||
fmt.Sprintf(`--%s`, commands.QueryFlag),
|
||||
queryStr,
|
||||
}, dEnv, nil)
|
||||
}, dEnv, cliCtx)
|
||||
}
|
||||
|
||||
+2
-2
@@ -475,8 +475,8 @@ func splitArgsOnSubCommand(args []string) (globalArgs, subArgs []string, initCli
|
||||
|
||||
if _, ok := commandSet[arg]; ok {
|
||||
// SQL is the first subcommand to support the CLIContext. We'll need a more general solution when we add more.
|
||||
// blame command depends on the sql command, so it is also included here.
|
||||
initCliContext := "sql" == arg || "blame" == arg
|
||||
// blame, table rm, and table mv commands also depend on the sql command, so they are also included here.
|
||||
initCliContext := "sql" == arg || "blame" == arg || "table" == arg
|
||||
return args[:i], args[i:], initCliContext, false, nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user