From 987383aa5a248d01602a82110a5c3ea0beec1889 Mon Sep 17 00:00:00 2001 From: Aman Kumar Date: Thu, 1 Aug 2024 17:57:45 +0530 Subject: [PATCH 1/3] fix: handle undefined issue & org flag missing in help command --- README.md | 57 ++++++---- package-lock.json | 208 ++++++++++++++++++++++++++++++++-- package.json | 4 +- src/base-command.ts | 15 ++- src/commands/app/create.ts | 1 + src/commands/app/delete.ts | 1 + src/commands/app/deploy.ts | 1 + src/commands/app/get.ts | 1 + src/commands/app/index.ts | 7 +- src/commands/app/install.ts | 1 + src/commands/app/reinstall.ts | 1 + src/commands/app/uninstall.ts | 1 + src/commands/app/update.ts | 1 + src/util/inquirer.ts | 4 + 14 files changed, 255 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index 7cdbd94..39a2d9e 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ $ npm install -g @contentstack/apps-cli $ csdx COMMAND running command... $ csdx (--version|-v) -@contentstack/apps-cli/1.3.0 darwin-arm64 node-v18.16.0 +@contentstack/apps-cli/1.3.1 darwin-arm64 node-v18.20.2 $ csdx --help [COMMAND] USAGE $ csdx COMMAND @@ -54,20 +54,22 @@ DESCRIPTION EXAMPLES $ csdx app:create - $ csdx app:get + $ csdx app:delete - $ csdx app:update + $ csdx app:deploy - $ csdx app:delete + $ csdx app:get $ csdx app:install + $ csdx app:reinstall + $ csdx app:uninstall - $ csdx app:reinstall + $ csdx app:update ``` -_See code: [src/commands/app/index.ts](https://github.com/contentstack/apps-cli/blob/v1.3.0/src/commands/app/index.ts)_ +_See code: [src/commands/app/index.ts](https://github.com/contentstack/apps-cli/blob/v1.3.1/src/commands/app/index.ts)_ ## `csdx app:create` @@ -76,7 +78,7 @@ Create a new app in Developer Hub and optionally clone a boilerplate locally. ``` USAGE $ csdx app:create [-n ] [--app-type stack|organization] [-c ] [-d ] [--boilerplate - ] + ] [--org ] FLAGS -c, --config= Path of the external config @@ -84,7 +86,9 @@ FLAGS -n, --name= Name of the app to be created --app-type=