Skip to content

Commit 620faf0

Browse files
Merge pull request #220 from contentstack/fix/DX-537-text-ui-changes
dx-537 | text UI changes
2 parents f87b3b1 + 0efe419 commit 620faf0

File tree

4 files changed

+33
-32
lines changed

4 files changed

+33
-32
lines changed

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $ npm install -g @contentstack/apps-cli
2020
$ csdx COMMAND
2121
running command...
2222
$ csdx (--version|-v)
23-
@contentstack/apps-cli/1.0.5 darwin-arm64 node-v20.10.0
23+
@contentstack/apps-cli/1.0.7 darwin-arm64 node-v18.16.0
2424
$ csdx --help [COMMAND]
2525
USAGE
2626
$ csdx COMMAND
@@ -63,7 +63,7 @@ EXAMPLES
6363
$ csdx app:uninstall
6464
```
6565

66-
_See code: [src/commands/app/index.ts](https://github.com/contentstack/apps-cli/blob/v1.0.5/src/commands/app/index.ts)_
66+
_See code: [src/commands/app/index.ts](https://github.com/contentstack/apps-cli/blob/v1.0.7/src/commands/app/index.ts)_
6767

6868
## `csdx app:create`
6969

@@ -76,10 +76,10 @@ USAGE
7676
FLAGS
7777
-c, --config=<value> Path of the external config
7878
-d, --data-dir=<value> Current working directory.
79-
-n, --name=<value> Name of the app to be created
80-
--app-type=<option> [default: stack] Type of App
79+
-n, --name=<value> [default: app-boilerplate] Name of the app to be created
80+
--app-type=<option> [default: stack] Type of app
8181
<options: stack|organization>
82-
--org=<value> Provide the organization UID
82+
--org=<value> Provide the organization UID to fetch the app details for the desired operation.
8383
8484
DESCRIPTION
8585
Create a new app in Developer Hub and optionally clone a boilerplate locally.
@@ -94,7 +94,7 @@ EXAMPLES
9494
$ csdx app:create --name App-3 --app-type organization --org <UID> -d ./boilerplate -c ./external-config.json
9595
```
9696

97-
_See code: [src/commands/app/create.ts](https://github.com/contentstack/apps-cli/blob/v1.0.5/src/commands/app/create.ts)_
97+
_See code: [src/commands/app/create.ts](https://github.com/contentstack/apps-cli/blob/v1.0.7/src/commands/app/create.ts)_
9898

9999
## `csdx app:delete`
100100

@@ -105,8 +105,8 @@ USAGE
105105
$ csdx app:delete [--org <value>] [--app-uid <value>]
106106
107107
FLAGS
108-
--app-uid=<value> Provide the app UID
109-
--org=<value> Provide the organization UID
108+
--app-uid=<value> Provide the app UID of an existing app.
109+
--org=<value> Provide the organization UID to fetch the app details for the desired operation.
110110
111111
DESCRIPTION
112112
Delete app from marketplace
@@ -119,7 +119,7 @@ EXAMPLES
119119
$ csdx app:delete --app-uid <value> --org <value> -d ./boilerplate
120120
```
121121

122-
_See code: [src/commands/app/delete.ts](https://github.com/contentstack/apps-cli/blob/v1.0.5/src/commands/app/delete.ts)_
122+
_See code: [src/commands/app/delete.ts](https://github.com/contentstack/apps-cli/blob/v1.0.7/src/commands/app/delete.ts)_
123123

124124
## `csdx app:get`
125125

@@ -131,10 +131,10 @@ USAGE
131131
132132
FLAGS
133133
-d, --data-dir=<value> Current working directory.
134-
--app-type=<option> [default: stack] Type of App
134+
--app-type=<option> [default: stack] Type of app
135135
<options: stack|organization>
136-
--app-uid=<value> Provide the app UID
137-
--org=<value> Provide the organization UID
136+
--app-uid=<value> Provide the app UID of an existing app.
137+
--org=<value> Provide the organization UID to fetch the app details for the desired operation.
138138
139139
DESCRIPTION
140140
Get details of an app in developer hub
@@ -149,7 +149,7 @@ EXAMPLES
149149
$ csdx app:get --org <value> --app-uid <value> --app-type organization
150150
```
151151

152-
_See code: [src/commands/app/get.ts](https://github.com/contentstack/apps-cli/blob/v1.0.5/src/commands/app/get.ts)_
152+
_See code: [src/commands/app/get.ts](https://github.com/contentstack/apps-cli/blob/v1.0.7/src/commands/app/get.ts)_
153153

154154
## `csdx app:install`
155155

@@ -160,8 +160,8 @@ USAGE
160160
$ csdx app:install [--org <value>] [--app-uid <value>] [--stack-api-key <value>]
161161
162162
FLAGS
163-
--app-uid=<value> Provide the app UID
164-
--org=<value> Provide the organization UID
163+
--app-uid=<value> Provide the app UID of an existing app.
164+
--org=<value> Provide the organization UID to fetch the app details for the desired operation.
165165
--stack-api-key=<value> API key of the stack where the app is to be installed.
166166
167167
DESCRIPTION
@@ -175,7 +175,7 @@ EXAMPLES
175175
$ csdx app:install --org <UID> --app-uid <APP-UID-1> --stack-api-key <STACK-API-KEY-1>
176176
```
177177

178-
_See code: [src/commands/app/install.ts](https://github.com/contentstack/apps-cli/blob/v1.0.5/src/commands/app/install.ts)_
178+
_See code: [src/commands/app/install.ts](https://github.com/contentstack/apps-cli/blob/v1.0.7/src/commands/app/install.ts)_
179179

180180
## `csdx app:uninstall`
181181

@@ -186,9 +186,9 @@ USAGE
186186
$ csdx app:uninstall [--org <value>] [--app-uid <value>] [--installation-uid <value>] [--uninstall-all]
187187
188188
FLAGS
189-
--app-uid=<value> Provide the app UID
189+
--app-uid=<value> Provide the app UID of an existing app.
190190
--installation-uid=<value> Provide the installation ID of the app that needs to be uninstalled.
191-
--org=<value> Provide the organization UID
191+
--org=<value> Provide the organization UID to fetch the app details for the desired operation.
192192
--uninstall-all Please select stacks from where the app must be uninstalled.
193193
194194
DESCRIPTION
@@ -202,7 +202,7 @@ EXAMPLES
202202
$ csdx app:uninstall --org <UID> --app-uid <APP-UID-1> --installation-uid <INSTALLATION-UID-1>
203203
```
204204

205-
_See code: [src/commands/app/uninstall.ts](https://github.com/contentstack/apps-cli/blob/v1.0.5/src/commands/app/uninstall.ts)_
205+
_See code: [src/commands/app/uninstall.ts](https://github.com/contentstack/apps-cli/blob/v1.0.7/src/commands/app/uninstall.ts)_
206206

207207
## `csdx app:update`
208208

@@ -214,7 +214,7 @@ USAGE
214214
215215
FLAGS
216216
--app-manifest=<value> Path to the app manifest.json file:
217-
--org=<value> Provide the organization UID
217+
--org=<value> Provide the organization UID to fetch the app details for the desired operation.
218218
219219
DESCRIPTION
220220
Update the existing app in developer hub
@@ -225,5 +225,5 @@ EXAMPLES
225225
$ csdx app:update --app-manifest ./boilerplate/manifest.json
226226
```
227227

228-
_See code: [src/commands/app/update.ts](https://github.com/contentstack/apps-cli/blob/v1.0.5/src/commands/app/update.ts)_
228+
_See code: [src/commands/app/update.ts](https://github.com/contentstack/apps-cli/blob/v1.0.7/src/commands/app/update.ts)_
229229
<!-- commandsstop -->

src/commands/app/create.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export default class Create extends BaseCommand<typeof Create> {
5454
static flags = {
5555
name: flags.string({
5656
char: "n",
57+
default: "app-boilerplate",
5758
description: appCreate.NAME_DESCRIPTION,
5859
}),
5960
"app-type": flags.string({

src/commands/app/uninstall.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default class Uninstall extends AppCLIBaseCommand {
2323
}),
2424
'uninstall-all': flags.boolean({
2525
description: uninstallAppMsg.UNINSTALL_ALL,
26-
})
26+
}),
2727
}
2828

2929
async run(): Promise<void> {

src/messages/index.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ 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",
34-
APP_TYPE_DESCRIPTION: "Type of App",
33+
APP_UID: "Provide the app UID of an existing app.",
34+
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.",
3737
USER_TERMINATION: "Process terminated by the user.",
@@ -42,7 +42,7 @@ const appCreate = {
4242
ORG_UID: "Organization UID",
4343
NAME: "{target} name",
4444
UNZIP: "Unzipping the boilerplate...",
45-
APP_TYPE_DESCRIPTION: "Type of App",
45+
APP_TYPE_DESCRIPTION: "Type of app",
4646
CHOOSE_ORG: "Choose an organization",
4747
DIR_EXIST: "Directory name already exists.",
4848
ROLLBACK_BOILERPLATE: "Rolling back boilerplate...",
@@ -58,7 +58,7 @@ const appCreate = {
5858
START_APP_COMMAND: "Start the app using the following command: {command}",
5959
};
6060

61-
const getApp = {
61+
const getAppMsg = {
6262
CHOOSE_APP: "Choose an app",
6363
APP_UID_NOT_FOUND: "App UID was not found!",
6464
FILE_WRITTEN_SUCCESS: "App data has been written to {file} successfully.",
@@ -80,15 +80,15 @@ const deleteAppMsg = {
8080
APP_DELETED_SUCCESSFULLY: "{app} deleted successfully.",
8181
APP_UID_INVALID: "App UID must be valid.",
8282
PLEASE_SELECT_APP_FROM_LIST: "Please select an app from the list",
83-
DELETE_CONFIRMATION: "Are you sure you want to delete this app?"
83+
DELETE_CONFIRMATION: "Are you sure you want to delete this app?",
8484
}
8585

8686
const installAppMsg = {
8787
CHOOSE_A_STACK: "Please select a stack",
8888
APP_INSTALLED_SUCCESSFULLY: "{app} installed successfully in {target}.",
8989
INSTALL_ORG_APP_TO_STACK: "{app} is an organization app. It cannot be installed to a stack. Do you want to proceed?",
9090
MISSING_STACK_API_KEY: "As {app} is a stack app, it can only be installed in a stack. Please select a stack.",
91-
INSTALLING_APP_NOTICE: "Installing {app} on {type} {target}."
91+
INSTALLING_APP_NOTICE: "Installing {app} on {type} {target}.",
9292
}
9393

9494
const uninstallAppMsg = {
@@ -104,15 +104,15 @@ const messages: typeof errors &
104104
typeof commonMsg &
105105
typeof appCreate &
106106
typeof appUpdate &
107-
typeof getApp &
107+
typeof getAppMsg &
108108
typeof deleteAppMsg &
109109
typeof installAppMsg &
110110
typeof uninstallAppMsg = {
111111
...errors,
112112
...commonMsg,
113113
...appCreate,
114114
...appUpdate,
115-
...getApp,
115+
...getAppMsg,
116116
...deleteAppMsg,
117117
...installAppMsg,
118118
...uninstallAppMsg
@@ -130,4 +130,4 @@ const $t = (msg: string, args: Record<string, string>): string => {
130130
};
131131

132132
export default messages;
133-
export { $t, errors, commonMsg, appCreate, appUpdate, getApp, deleteAppMsg, installAppMsg, uninstallAppMsg };
133+
export { $t, errors, commonMsg, appCreate, appUpdate, getAppMsg, deleteAppMsg, installAppMsg, uninstallAppMsg };

0 commit comments

Comments
 (0)