dolt rm and dolt mv want to join the party

This commit is contained in:
Neil Macneale IV
2023-04-25 14:40:50 -07:00
parent 213de8c5cb
commit 0f8c162e2a
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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)
}
+1 -1
View File
@@ -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)
}
+1 -1
View File
@@ -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
View File
@@ -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
}
}