Skip to content

Commit 9379b81

Browse files
carlo-kontentIvanKiral
authored andcommitted
Migrate Content & Sync Run suppress message flag (--sw) was incorrect (eg. suppress this message with --sw parameter) and did not match the suppress command flags for each command (eg. skipConfirmation). Migrate Content & Sync Run suppress flags and messages have been updated to match the Clean command (eg. --s)
1 parent 20a9165 commit 9379b81

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/commands/migrateContent/run/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ The command provides several parameters to cover various scenarios for selecting
115115
| `--depth` | (Optional) The depth of linked items to include in the migration. |
116116
| `--limit` | (Optional) The maximum number of content items to retrieve per API call (default is 100, maximum is 100). |
117117
| `--configFile` | (Optional) Path to a JSON configuration file containing parameters. |
118+
| `--skipConfirmation` | (Optional) Skip confirmation message. |
118119

119120
To see all supported parameters, run:
120121

src/commands/migrateContent/run/run.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ export const register: RegisterCommand = (yargs) =>
105105
.option("skipConfirmation", {
106106
type: "boolean",
107107
describe: "Skip confirmation message.",
108+
alias: "sc",
108109
})
109110
.option("kontentUrl", {
110111
type: "string",
@@ -149,7 +150,7 @@ const migrateContentRunCli = async (params: MigrateContentRunCliParams) => {
149150
await migrateContentRunInternal(resolvedParams, "migrate-content-run", async () => {
150151
await checkConfirmation({
151152
message: `⚠ Running this operation may result in irreversible changes to the content in environment ${params.targetEnvironmentId}.
152-
OK to proceed y/n? (suppress this message with --sw parameter)\n`,
153+
OK to proceed y/n? (suppress this message with --sc parameter)\n`,
153154
skipConfirmation: params.skipConfirmation,
154155
logOptions: params,
155156
});

src/commands/sync/run/run.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export const register: RegisterCommand = (yargs) =>
7070
.option("skipConfirmation", {
7171
type: "boolean",
7272
describe: "Skip confirmation message.",
73+
alias: "sc",
7374
})
7475
.option("kontentUrl", {
7576
type: "string",
@@ -100,7 +101,7 @@ const syncRunCli = async (params: SyncModelRunCliParams) => {
100101
await checkConfirmation({
101102
message: `⚠ Running this operation may result in irreversible changes to the content in environment ${params.targetEnvironmentId}. Mentioned changes might include:
102103
- Removing content due to element deletion
103-
OK to proceed y/n? (suppress this message with --sw parameter)\n`,
104+
OK to proceed y/n? (suppress this message with --sc parameter)\n`,
104105
skipConfirmation: params.skipConfirmation,
105106
logOptions: params,
106107
});

0 commit comments

Comments
 (0)