@contentstack/cli-auth 1.3.14 → 1.3.15
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 +2 -2
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-auth
|
|
|
18
18
|
$ csdx COMMAND
|
|
19
19
|
running command...
|
|
20
20
|
$ csdx (--version)
|
|
21
|
-
@contentstack/cli-auth/1.3.
|
|
21
|
+
@contentstack/cli-auth/1.3.15 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 {
|
|
2
|
+
import { 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
|
/**
|
|
11
10
|
* The `init` function initializes the command by parsing arguments and flags, registering search
|
|
12
11
|
* plugins, registering the configuration, and initializing the logger.
|
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 can 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-auth",
|
|
3
3
|
"description": "Contentstack CLI plugin for authentication activities",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.15",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
7
7
|
"scripts": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@contentstack/cli-command": "~1.2.13",
|
|
26
|
-
"@contentstack/cli-utilities": "~1.5.
|
|
26
|
+
"@contentstack/cli-utilities": "~1.5.4",
|
|
27
27
|
"chalk": "^4.0.0",
|
|
28
28
|
"debug": "^4.1.1",
|
|
29
29
|
"inquirer": "8.2.4",
|