Skip to content

Commit f4ecf72

Browse files
fix: avoiding duplicate org flags
1 parent 3f1af5b commit f4ecf72

File tree

7 files changed

+1
-25
lines changed

7 files changed

+1
-25
lines changed

src/commands/app/create.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ export default class Create extends BaseCommand<typeof Create> {
7070
char: "d",
7171
description: commonMsg.CURRENT_WORKING_DIR,
7272
}),
73-
org: flags.string({
74-
description: appCreate.ORG_UID_DESCRIPTION,
75-
}),
7673
};
7774

7875
async run(): Promise<void> {

src/commands/app/delete.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ export default class Delete extends AppCLIBaseCommand {
1717
"app-uid": flags.string({
1818
description: deleteAppMsg.APP_UID,
1919
}),
20-
org: flags.string({
21-
description: deleteAppMsg.ORG_UID_DESCRIPTION,
22-
}),
2320
};
2421

2522
async run(): Promise<void> {

src/commands/app/get.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { flags } from "@contentstack/cli-utilities";
22

3-
import { commonMsg, getAppMsg } from "../../messages";
3+
import { commonMsg } from "../../messages";
44
import {AppCLIBaseCommand} from "../../app-cli-base-coomand";
55
import { getOrg, getApp, writeFile, fetchApp } from "../../util";
66

@@ -27,9 +27,6 @@ export default class Get extends AppCLIBaseCommand {
2727
char: "d",
2828
description: commonMsg.CURRENT_WORKING_DIR,
2929
}),
30-
org: flags.string({
31-
description: getAppMsg.ORG_UID_DESCRIPTION,
32-
}),
3330
};
3431

3532
async run(): Promise<void> {

src/commands/app/install.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ export default class Install extends AppCLIBaseCommand {
2828
"stack-api-key": flags.string({
2929
description: commonMsg.STACK_API_KEY,
3030
}),
31-
org: flags.string({
32-
description: installAppMsg.ORG_UID_DESCRIPTION,
33-
})
3431
};
3532

3633
async run(): Promise<void> {

src/commands/app/uninstall.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ export default class Uninstall extends AppCLIBaseCommand {
2424
'uninstall-all': flags.boolean({
2525
description: uninstallAppMsg.UNINSTALL_ALL,
2626
}),
27-
org: flags.string({
28-
description: uninstallAppMsg.ORG_UID_DESCRIPTION,
29-
}),
3027
}
3128

3229
async run(): Promise<void> {

src/commands/app/update.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ export default class Update extends AppCLIBaseCommand {
2424
"app-manifest": flags.string({
2525
description: $t(appUpdate.FILE_PATH, { fileName: "app manifest.json" }),
2626
}),
27-
org: flags.string({
28-
description: appUpdate.ORG_UID_DESCRIPTION,
29-
}),
3027
};
3128

3229
async run(): Promise<void> {

src/messages/index.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ const appCreate = {
5656
REGISTER_THE_APP_ON_DEVELOPER_HUB:
5757
"Registering the app with the name {appName} on the Developer Hub...",
5858
START_APP_COMMAND: "Start the app using the following command: {command}",
59-
ORG_UID_DESCRIPTION: "Provide the organization UID where the app is to be created.",
6059
};
6160

6261
const getAppMsg = {
@@ -66,7 +65,6 @@ const getAppMsg = {
6665
APPS_NOT_FOUND: "No apps found!",
6766
FILE_ALREADY_EXISTS:
6867
"{file} already exists. Do you want to overwrite this file? (y/n) (Selecting 'n' creates a new file)",
69-
ORG_UID_DESCRIPTION:"Provide the organization UID where the app details are to be fetched from.",
7068
};
7169

7270
const appUpdate = {
@@ -75,7 +73,6 @@ const appUpdate = {
7573
APP_UPDATE_SUCCESS: "App updated successfully!",
7674
APP_VERSION_MISS_MATCH:
7775
"App versions mismatch! Please download the latest file using the `csdx app:get` command and sync the file with the latest downloaded file.",
78-
ORG_UID_DESCRIPTION:"Provide the organization UID where the app details are to be fetched from.",
7976
};
8077

8178
const deleteAppMsg = {
@@ -85,7 +82,6 @@ const deleteAppMsg = {
8582
PLEASE_SELECT_APP_FROM_LIST: "Please select an app from the list",
8683
DELETE_CONFIRMATION: "Are you sure you want to delete this app?",
8784
APP_UID: "Provide the app UID of an existing app to be deleted.",
88-
ORG_UID_DESCRIPTION:"Provide the organization UID where the app details are to be fetched from, to delete the app",
8985
}
9086

9187
const installAppMsg = {
@@ -95,7 +91,6 @@ const installAppMsg = {
9591
MISSING_STACK_API_KEY: "As {app} is a stack app, it can only be installed in a stack. Please select a stack.",
9692
INSTALLING_APP_NOTICE: "Installing {app} on {type} {target}.",
9793
APP_UID: "Provide the app UID of an existing app to be installed.",
98-
ORG_UID_DESCRIPTION:"Provide the organization UID where the app details are to be fetched from, to install the app.",
9994
}
10095

10196
const uninstallAppMsg = {
@@ -106,7 +101,6 @@ const uninstallAppMsg = {
106101
UNINSTALLING_APP: "Uninstalling app from {type}...",
107102
UNINSTALL_ALL: "Please select stacks from where the app must be uninstalled.",
108103
APP_UID: "Provide the Aapp UID of an existing app to be uninstalled.",
109-
ORG_UID_DESCRIPTION:"Provide the organization UID where the app details are to be fetched from to uninstall the app.",
110104
}
111105

112106
const messages: typeof errors &

0 commit comments

Comments
 (0)