kourou 0.24.1 → 0.24.2

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 CHANGED
@@ -26,7 +26,7 @@ $ npm install -g kourou
26
26
  $ kourou COMMAND
27
27
  running command...
28
28
  $ kourou (-v|--version|version)
29
- kourou/0.24.1 linux-x64 node-v16.13.2
29
+ kourou/0.24.2 darwin-x64 node-v16.17.0
30
30
  $ kourou --help [COMMAND]
31
31
  USAGE
32
32
  $ kourou COMMAND
@@ -1006,6 +1006,7 @@ USAGE
1006
1006
 
1007
1007
  OPTIONS
1008
1008
  --help show CLI help
1009
+ --only_npm Only perform the login on the private NPM registry
1009
1010
  --project=project Current PaaS project
1010
1011
  --username=username PaaS username
1011
1012
  ```
@@ -7,6 +7,7 @@ declare class PaasLogin extends PaasKommand {
7
7
  help: import("@oclif/parser/lib/flags").IBooleanFlag<void>;
8
8
  project: flags.IOptionFlag<string | undefined>;
9
9
  username: flags.IOptionFlag<string | undefined>;
10
+ only_npm: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10
11
  };
11
12
  runSafe(): Promise<void>;
12
13
  createProjectCredentials(apiKey: ApiKey): void;
@@ -16,6 +16,10 @@ class PaasLogin extends PaasKommand_1.PaasKommand {
16
16
  const password = process.env.KUZZLE_PAAS_PASSWORD
17
17
  ? process.env.KUZZLE_PAAS_PASSWORD
18
18
  : await cli_ux_1.default.prompt(` Password`, { type: 'hide' });
19
+ if (this.flags.only_npm) {
20
+ await this.authenticateNPM(username, password);
21
+ return;
22
+ }
19
23
  await this.initPaasClient({ username, password });
20
24
  const apiKey = await this.paas.auth.createApiKey('Kourou PaaS API Key');
21
25
  this.createProjectCredentials(apiKey);
@@ -55,10 +59,16 @@ PaasLogin.description = 'Login for a PaaS project';
55
59
  PaasLogin.flags = {
56
60
  help: command_1.flags.help(),
57
61
  project: command_1.flags.string({
58
- description: 'Current PaaS project'
62
+ description: 'Current PaaS project',
63
+ required: false
59
64
  }),
60
65
  username: command_1.flags.string({
61
66
  description: 'PaaS username',
62
67
  }),
68
+ only_npm: command_1.flags.boolean({
69
+ description: 'Only perform the login on the private NPM registry',
70
+ required: false,
71
+ default: false
72
+ })
63
73
  };
64
74
  exports.default = PaasLogin;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kourou",
3
3
  "description": "The CLI that helps you manage your Kuzzle instances",
4
- "version": "0.24.1",
4
+ "version": "0.24.2",
5
5
  "author": "The Kuzzle Team <support@kuzzle.io>",
6
6
  "bin": {
7
7
  "kourou": "./bin/run"