@contentstack/cli-config 1.4.12 → 1.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/base-command.d.ts +1 -2
- package/lib/base-command.js +0 -10
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-config
|
|
|
18
18
|
$ csdx COMMAND
|
|
19
19
|
running command...
|
|
20
20
|
$ csdx (--version)
|
|
21
|
-
@contentstack/cli-config/1.4.
|
|
21
|
+
@contentstack/cli-config/1.4.13 linux-x64 node-v18.18.2
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
package/lib/base-command.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Command } from '@contentstack/cli-command';
|
|
2
|
-
import { ArgInput,
|
|
2
|
+
import { ArgInput, Interfaces, LoggerService } from '@contentstack/cli-utilities';
|
|
3
3
|
export type Args<T extends typeof Command> = Interfaces.InferredArgs<T['args']>;
|
|
4
4
|
export type Flags<T extends typeof Command> = Interfaces.InferredFlags<(typeof BaseCommand)['baseFlags'] & T['flags']>;
|
|
5
5
|
export declare abstract class BaseCommand<T extends typeof Command> extends Command {
|
|
6
6
|
logger: LoggerService;
|
|
7
7
|
protected args: Args<T>;
|
|
8
8
|
protected flags: Flags<T>;
|
|
9
|
-
static baseFlags: FlagInput;
|
|
10
9
|
static args: ArgInput<{
|
|
11
10
|
[arg: string]: any;
|
|
12
11
|
}>;
|
package/lib/base-command.js
CHANGED
|
@@ -10,14 +10,6 @@ class BaseCommand extends cli_command_1.Command {
|
|
|
10
10
|
*/
|
|
11
11
|
async init() {
|
|
12
12
|
await super.init();
|
|
13
|
-
const { args, flags } = await this.parse({
|
|
14
|
-
flags: this.ctor.flags,
|
|
15
|
-
baseFlags: super.ctor.baseFlags,
|
|
16
|
-
args: this.ctor.args,
|
|
17
|
-
strict: this.ctor.strict,
|
|
18
|
-
});
|
|
19
|
-
this.flags = flags;
|
|
20
|
-
this.args = args;
|
|
21
13
|
// Init logger
|
|
22
14
|
this.logger = new cli_utilities_1.LoggerService(process.cwd(), 'cli-log');
|
|
23
15
|
}
|
|
@@ -47,5 +39,3 @@ class BaseCommand extends cli_command_1.Command {
|
|
|
47
39
|
}
|
|
48
40
|
}
|
|
49
41
|
exports.BaseCommand = BaseCommand;
|
|
50
|
-
// NOTE define flags that canin be inherited by any command that extends BaseCommand
|
|
51
|
-
BaseCommand.baseFlags = {};
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-config",
|
|
3
3
|
"description": "Contentstack CLI plugin for configuration",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.13",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "npm run clean && npm run compile",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\""
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@contentstack/cli-command": "~1.2.
|
|
25
|
-
"@contentstack/cli-utilities": "~1.5.
|
|
24
|
+
"@contentstack/cli-command": "~1.2.14",
|
|
25
|
+
"@contentstack/cli-utilities": "~1.5.4",
|
|
26
26
|
"chalk": "^4.0.0",
|
|
27
27
|
"debug": "^4.1.1",
|
|
28
28
|
"mkdirp": "^1.0.4",
|