ardent-cli-beta 0.0.3 → 0.0.4
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/dist/commands/login.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export default class Login extends ArdentCommand {
|
|
|
4
4
|
static description: string;
|
|
5
5
|
static helpGroup: string;
|
|
6
6
|
static flags: {
|
|
7
|
-
token: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
token: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
8
|
};
|
|
9
9
|
run(): Promise<{
|
|
10
10
|
authenticated: true;
|
package/dist/commands/login.js
CHANGED
|
@@ -5,10 +5,12 @@ export default class Login extends ArdentCommand {
|
|
|
5
5
|
static description = 'Log in to Ardent';
|
|
6
6
|
static helpGroup = 'Authentication';
|
|
7
7
|
static flags = {
|
|
8
|
-
token: Flags.string({ description: 'Existing Ardent API token', env: 'ARDENT_TOKEN'
|
|
8
|
+
token: Flags.string({ description: 'Existing Ardent API token', env: 'ARDENT_TOKEN' }),
|
|
9
9
|
};
|
|
10
10
|
async run() {
|
|
11
11
|
const { flags } = await this.parse(Login);
|
|
12
|
+
if (!flags.token)
|
|
13
|
+
this.error('Interactive login is not implemented yet.');
|
|
12
14
|
const organizations = await loginWithToken(this.config.configDir, flags.token);
|
|
13
15
|
if (!this.jsonEnabled()) {
|
|
14
16
|
this.log('✓ Logged in to Ardent');
|
package/oclif.manifest.json
CHANGED
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"description": "Existing Ardent API token",
|
|
17
17
|
"env": "ARDENT_TOKEN",
|
|
18
18
|
"name": "token",
|
|
19
|
-
"required": true,
|
|
20
19
|
"hasDynamicHelp": false,
|
|
21
20
|
"multiple": false,
|
|
22
21
|
"type": "option"
|
|
@@ -97,5 +96,5 @@
|
|
|
97
96
|
]
|
|
98
97
|
}
|
|
99
98
|
},
|
|
100
|
-
"version": "0.0.
|
|
99
|
+
"version": "0.0.4"
|
|
101
100
|
}
|