Skip to content

Commit 68630e0

Browse files
fix: common message for flags: org and app_uid
1 parent 19676cd commit 68630e0

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

src/commands/app/delete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default class Delete extends AppCLIBaseCommand {
1515

1616
static flags = {
1717
"app-uid": flags.string({
18-
description: deleteAppMsg.APP_UID,
18+
description: commonMsg.APP_UID,
1919
}),
2020
};
2121

src/commands/app/install.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default class Install extends AppCLIBaseCommand {
2323

2424
static flags = {
2525
"app-uid": flags.string({
26-
description: installAppMsg.APP_UID,
26+
description: commonMsg.APP_UID,
2727
}),
2828
"stack-api-key": flags.string({
2929
description: commonMsg.STACK_API_KEY,

src/commands/app/uninstall.ts

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

3-
import { uninstallAppMsg } from "../../messages";
3+
import { commonMsg, uninstallAppMsg } from "../../messages";
44
import {AppCLIBaseCommand} from "../../app-cli-base-coomand";
55
import { getOrg, fetchApp, getInstalledApps } from "../../util";
66
import { UninstallAppFactory } from "../../factories/uninstall-app-factory";
@@ -16,7 +16,7 @@ export default class Uninstall extends AppCLIBaseCommand {
1616

1717
static flags = {
1818
'app-uid': flags.string({
19-
description: uninstallAppMsg.APP_UID,
19+
description: commonMsg.APP_UID,
2020
}),
2121
'installation-uid': flags.string({
2222
description: uninstallAppMsg.INSTALLATION_UID

src/messages/index.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ const errors = {
2525
const commonMsg = {
2626
CONFIG: "Path of the external config",
2727
MAX_RETRY_LIMIT: "Maximum retry limit reached.",
28-
PROVIDE_ORG_UID: "Provide the organization UID",
28+
PROVIDE_ORG_UID: "Provide the organization UID to fetch the app details for the desired operation.",
2929
CURRENT_WORKING_DIR: "Current working directory.",
3030
SKIP_CONFIRMATION: "Use this flag to skip the confirmation.",
3131
DEVELOPER_HUB_URL_PROMPT:
3232
"Enter the Developer Hub Base URL for the {name} region: ",
33-
APP_UID: "Provide the app UID of an existing app to fetch the details.",
33+
APP_UID: "Provide the app UID of an existing app.",
3434
APP_TYPE_DESCRIPTION: "Type of app",
3535
CONTACT_SUPPORT: "Please contact the support team.",
3636
STACK_API_KEY: "API key of the stack where the app is to be installed.",
@@ -81,7 +81,6 @@ const deleteAppMsg = {
8181
APP_UID_INVALID: "App UID must be valid.",
8282
PLEASE_SELECT_APP_FROM_LIST: "Please select an app from the list",
8383
DELETE_CONFIRMATION: "Are you sure you want to delete this app?",
84-
APP_UID: "Provide the app UID of an existing app to be deleted.",
8584
}
8685

8786
const installAppMsg = {
@@ -90,7 +89,6 @@ const installAppMsg = {
9089
INSTALL_ORG_APP_TO_STACK: "{app} is an organization app. It cannot be installed to a stack. Do you want to proceed?",
9190
MISSING_STACK_API_KEY: "As {app} is a stack app, it can only be installed in a stack. Please select a stack.",
9291
INSTALLING_APP_NOTICE: "Installing {app} on {type} {target}.",
93-
APP_UID: "Provide the app UID of an existing app to be installed.",
9492
}
9593

9694
const uninstallAppMsg = {
@@ -100,7 +98,6 @@ const uninstallAppMsg = {
10098
APP_UNINSTALLED: "{app} uninstalled successfully.",
10199
UNINSTALLING_APP: "Uninstalling app from {type}...",
102100
UNINSTALL_ALL: "Please select stacks from where the app must be uninstalled.",
103-
APP_UID: "Provide the Aapp UID of an existing app to be uninstalled.",
104101
}
105102

106103
const messages: typeof errors &

0 commit comments

Comments
 (0)