@sw-tsdk/plugin-turbine 2.0.1-next.47 → 2.0.1-next.68

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
@@ -16,7 +16,7 @@ $ npm install -g @sw-tsdk/plugin-turbine
16
16
  $ sw-tsdk-turbine COMMAND
17
17
  running command...
18
18
  $ sw-tsdk-turbine (--version)
19
- @sw-tsdk/plugin-turbine/2.0.1-next.47+7fbdb67 linux-x64 node-v16.17.1
19
+ @sw-tsdk/plugin-turbine/2.0.1-next.68+0b70370 linux-x64 node-v16.17.1
20
20
  $ sw-tsdk-turbine --help [COMMAND]
21
21
  USAGE
22
22
  $ sw-tsdk-turbine COMMAND
@@ -26,13 +26,14 @@ USAGE
26
26
  # Commands
27
27
  <!-- commands -->
28
28
  * [`sw-tsdk-turbine turbine:connector:keys:generate`](#sw-tsdk-turbine-turbineconnectorkeysgenerate)
29
- * [`sw-tsdk-turbine turbine:connector:keys:list`](#sw-tsdk-turbine-turbineconnectorkeyslist)
29
+ * [`sw-tsdk-turbine turbine:connector:keys:list:local`](#sw-tsdk-turbine-turbineconnectorkeyslistlocal)
30
+ * [`sw-tsdk-turbine turbine:connector:keys:list:remote`](#sw-tsdk-turbine-turbineconnectorkeyslistremote)
30
31
  * [`sw-tsdk-turbine turbine:connector:push`](#sw-tsdk-turbine-turbineconnectorpush)
31
32
  * [`sw-tsdk-turbine turbine:login`](#sw-tsdk-turbine-turbinelogin)
32
33
 
33
34
  ## `sw-tsdk-turbine turbine:connector:keys:generate`
34
35
 
35
- Use to push an integration to Turbine
36
+ Use to generate and store signing keys in Turbine
36
37
 
37
38
  ```
38
39
  USAGE
@@ -48,27 +49,47 @@ FLAGS
48
49
  --turbine-url=<value> (required) the url of the turbine instance [https://turbine.acme.com]
49
50
 
50
51
  DESCRIPTION
51
- Use to push an integration to Turbine
52
+ Use to generate and store signing keys in Turbine
52
53
  ```
53
54
 
54
- _See code: [lib/commands/turbine/connector/keys/generate.js](https://github.com/swimlane/turbine-sdk/blob/v2.0.1-next.47+7fbdb67/lib/commands/turbine/connector/keys/generate.js)_
55
+ _See code: [lib/commands/turbine/connector/keys/generate.js](https://github.com/swimlane/turbine-sdk/blob/v2.0.1-next.68+0b70370/lib/commands/turbine/connector/keys/generate.js)_
55
56
 
56
- ## `sw-tsdk-turbine turbine:connector:keys:list`
57
+ ## `sw-tsdk-turbine turbine:connector:keys:list:local`
57
58
 
58
- Use to push an integration to Turbine
59
+ Use to list local keys
59
60
 
60
61
  ```
61
62
  USAGE
62
- $ sw-tsdk-turbine turbine:connector:keys:list [-h]
63
+ $ sw-tsdk-turbine turbine:connector:keys:list:local [-h]
63
64
 
64
65
  FLAGS
65
66
  -h, --help Show CLI help.
66
67
 
67
68
  DESCRIPTION
68
- Use to push an integration to Turbine
69
+ Use to list local keys
70
+ ```
71
+
72
+ _See code: [lib/commands/turbine/connector/keys/list/local.js](https://github.com/swimlane/turbine-sdk/blob/v2.0.1-next.68+0b70370/lib/commands/turbine/connector/keys/list/local.js)_
73
+
74
+ ## `sw-tsdk-turbine turbine:connector:keys:list:remote`
75
+
76
+ Use to list remote keys
77
+
78
+ ```
79
+ USAGE
80
+ $ sw-tsdk-turbine turbine:connector:keys:list:remote --turbine-url <value> [-u <value>] [-p <value>] [-h]
81
+
82
+ FLAGS
83
+ -h, --help Show CLI help.
84
+ -p, --password=<value> Turbine password
85
+ -u, --username=<value> Turbine username
86
+ --turbine-url=<value> (required) the url of the turbine instance [https://turbine.acme.com]
87
+
88
+ DESCRIPTION
89
+ Use to list remote keys
69
90
  ```
70
91
 
71
- _See code: [lib/commands/turbine/connector/keys/list.js](https://github.com/swimlane/turbine-sdk/blob/v2.0.1-next.47+7fbdb67/lib/commands/turbine/connector/keys/list.js)_
92
+ _See code: [lib/commands/turbine/connector/keys/list/remote.js](https://github.com/swimlane/turbine-sdk/blob/v2.0.1-next.68+0b70370/lib/commands/turbine/connector/keys/list/remote.js)_
72
93
 
73
94
  ## `sw-tsdk-turbine turbine:connector:push`
74
95
 
@@ -89,7 +110,7 @@ DESCRIPTION
89
110
  Use to push an integration to Turbine
90
111
  ```
91
112
 
92
- _See code: [lib/commands/turbine/connector/push.js](https://github.com/swimlane/turbine-sdk/blob/v2.0.1-next.47+7fbdb67/lib/commands/turbine/connector/push.js)_
113
+ _See code: [lib/commands/turbine/connector/push.js](https://github.com/swimlane/turbine-sdk/blob/v2.0.1-next.68+0b70370/lib/commands/turbine/connector/push.js)_
93
114
 
94
115
  ## `sw-tsdk-turbine turbine:login`
95
116
 
@@ -109,5 +130,5 @@ DESCRIPTION
109
130
  Use to login to Turbine
110
131
  ```
111
132
 
112
- _See code: [lib/commands/turbine/login.js](https://github.com/swimlane/turbine-sdk/blob/v2.0.1-next.47+7fbdb67/lib/commands/turbine/login.js)_
133
+ _See code: [lib/commands/turbine/login.js](https://github.com/swimlane/turbine-sdk/blob/v2.0.1-next.68+0b70370/lib/commands/turbine/login.js)_
113
134
  <!-- commandsstop -->
@@ -53,7 +53,7 @@ class Generate extends core_2.Base {
53
53
  }
54
54
  }
55
55
  exports.Generate = Generate;
56
- Generate.description = 'Use to push an integration to Turbine';
56
+ Generate.description = 'Use to generate and store signing keys in Turbine';
57
57
  Generate.flags = Object.assign(Object.assign({}, core_2.Base.BaseFlags), { username: core_1.Flags.string({ char: 'u', description: 'Turbine username', default: '' }), password: core_1.Flags.string({ char: 'p', description: 'Turbine password', default: '' }), 'signing-password': core_1.Flags.string({ description: 'password used for the private key', default: '' }), 'key-name': core_1.Flags.string({ description: 'name used for the key (default: username)' }), 'turbine-url': core_1.Flags.string({ description: 'the url of the turbine instance [https://turbine.acme.com]', required: true }),
58
58
  // replace: Flags.boolean({description: 'replaces the existing key'}),
59
59
  help: core_1.Flags.help({ char: 'h' }) });
@@ -1 +1 @@
1
- {"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../../../src/commands/turbine/connector/keys/generate.ts"],"names":[],"mappings":";;;AAAA,sCAA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AAC,WAAW,EAAE,2CAA2C,EAAC,CAAC,EACpF,aAAa,EAAE,YAAK,CAAC,MAAM,CAAC,EAAC,WAAW,EAAE,4DAA4D,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;IACxH,sEAAsE;IACtE,IAAI,EAAE,YAAK,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,GAAG,EAAC,CAAC,IAC9B"}
@@ -1,5 +1,5 @@
1
1
  import { Base } from '@sw-tsdk/core';
2
- export declare class List extends Base {
2
+ export declare class Local extends Base {
3
3
  static description: string;
4
4
  static flags: {
5
5
  help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
@@ -1,20 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.List = void 0;
3
+ exports.Local = void 0;
4
4
  const core_1 = require("@oclif/core");
5
5
  const core_2 = require("@sw-tsdk/core");
6
6
  const node_path_1 = require("node:path");
7
7
  const promises_1 = require("node:fs/promises");
8
8
  // noinspection JSUnusedGlobalSymbols
9
- class List extends core_2.Base {
9
+ class Local extends core_2.Base {
10
10
  async run() {
11
- await this.parse(List);
11
+ await this.parse(Local);
12
12
  const storagePath = (0, node_path_1.join)(this.config.configDir, 'keys');
13
13
  const directories = await (0, promises_1.readdir)(storagePath);
14
14
  console.log(directories.join('\n'));
15
15
  }
16
16
  }
17
- exports.List = List;
18
- List.description = 'Use to push an integration to Turbine';
19
- List.flags = Object.assign(Object.assign({}, core_2.Base.BaseFlags), { help: core_1.Flags.help({ char: 'h' }) });
20
- //# sourceMappingURL=list.js.map
17
+ exports.Local = Local;
18
+ Local.description = 'Use to list local keys';
19
+ Local.flags = Object.assign(Object.assign({}, core_2.Base.BaseFlags), { help: core_1.Flags.help({ char: 'h' }) });
20
+ //# sourceMappingURL=local.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local.js","sourceRoot":"","sources":["../../../../../../src/commands/turbine/connector/keys/list/local.ts"],"names":[],"mappings":";;;AAAA,sCAAiC;AACjC,wCAAkC;AAClC,yCAA8B;AAC9B,+CAAwC;AAExC,qCAAqC;AACrC,MAAa,KAAM,SAAQ,WAAI;IAQ7B,KAAK,CAAC,GAAG;QACP,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;QAEvB,MAAM,WAAW,GAAG,IAAA,gBAAI,EAAC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;QACvD,MAAM,WAAW,GAAG,MAAM,IAAA,kBAAO,EAAC,WAAW,CAAC,CAAA;QAE9C,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IACrC,CAAC;;AAfH,sBAgBC;AAfQ,iBAAW,GAAG,wBAAwB,CAAA;AAEtC,WAAK,mCACP,WAAI,CAAC,SAAS,KACjB,IAAI,EAAE,YAAK,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,GAAG,EAAC,CAAC,IAC9B"}
@@ -0,0 +1,12 @@
1
+ import { Base } from '@sw-tsdk/core';
2
+ export declare class Remote extends Base {
3
+ static description: string;
4
+ static flags: {
5
+ username: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
6
+ password: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
+ 'turbine-url': import("@oclif/core/lib/interfaces").OptionFlag<string>;
8
+ help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
9
+ 'log-level': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
10
+ };
11
+ run(): Promise<void>;
12
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Remote = void 0;
4
+ const core_1 = require("@oclif/core");
5
+ const core_2 = require("@sw-tsdk/core");
6
+ const inquirer_1 = require("inquirer");
7
+ const turbine_1 = require("@sw-tsdk/turbine");
8
+ // noinspection JSUnusedGlobalSymbols
9
+ class Remote extends core_2.Base {
10
+ async run() {
11
+ var _a;
12
+ const { flags } = await this.parse(Remote);
13
+ const { username, password, 'turbine-url': baseUrl } = flags;
14
+ const answers = await (0, inquirer_1.prompt)([{
15
+ type: 'input',
16
+ name: 'username',
17
+ message: 'Enter a username',
18
+ when: () => !username || username.length === 0,
19
+ }, {
20
+ type: 'password',
21
+ name: 'password',
22
+ message: 'Enter a password',
23
+ when: () => !password || password.length === 0,
24
+ }]);
25
+ const newConfig = Object.assign(flags, answers);
26
+ const turbine = await turbine_1.Turbine.get(baseUrl);
27
+ await (turbine === null || turbine === void 0 ? void 0 : turbine.login(newConfig.username, newConfig.password));
28
+ const keys = (_a = await (turbine === null || turbine === void 0 ? void 0 : turbine.getPublicKeys())) !== null && _a !== void 0 ? _a : [];
29
+ console.log(keys.join('\n'));
30
+ }
31
+ }
32
+ exports.Remote = Remote;
33
+ Remote.description = 'Use to list remote keys';
34
+ Remote.flags = Object.assign(Object.assign({}, core_2.Base.BaseFlags), { username: core_1.Flags.string({ char: 'u', description: 'Turbine username' }), password: core_1.Flags.string({ char: 'p', description: 'Turbine password' }), 'turbine-url': core_1.Flags.string({ description: 'the url of the turbine instance [https://turbine.acme.com]', required: true }), help: core_1.Flags.help({ char: 'h' }) });
35
+ //# sourceMappingURL=remote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote.js","sourceRoot":"","sources":["../../../../../../src/commands/turbine/connector/keys/list/remote.ts"],"names":[],"mappings":";;;AAAA,sCAAiC;AACjC,wCAAkC;AAClC,uCAA+B;AAC/B,8CAAwC;AAExC,qCAAqC;AACrC,MAAa,MAAO,SAAQ,WAAI;IAW9B,KAAK,CAAC,GAAG;;QACP,MAAM,EAAC,KAAK,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QAExC,MAAM,EAAC,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAC,GAAG,KAAK,CAAA;QAE1D,MAAM,OAAO,GAAG,MAAM,IAAA,iBAAM,EAAC,CAAC;g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,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC,EACxH,IAAI,EAAE,YAAK,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,GAAG,EAAC,CAAC,IAC9B"}
@@ -1 +1 @@
1
- {"version":"2.0.1-next.47+7fbdb67","commands":{"turbine:login":{"id":"turbine:login","description":"Use to login to Turbine","strict":true,"pluginName":"@sw-tsdk/plugin-turbine","pluginAlias":"@sw-tsdk/plugin-turbine","pluginType":"core","aliases":[],"flags":{"log-level":{"name":"log-level","type":"option","hidden":true,"multiple":false,"options":["debug"]},"username":{"name":"username","type":"option","char":"u","description":"Turbine username","multiple":false},"password":{"name":"password","type":"option","char":"p","description":"Turbine password","multiple":false},"turbine-url":{"name":"turbine-url","type":"option","description":"the url of the turbine instance [https://turbine.acme.com]","required":true,"multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"turbine:connector:push":{"id":"turbine:connector:push","description":"Use to push an integration to Turbine","strict":true,"pluginName":"@sw-tsdk/plugin-turbine","pluginAlias":"@sw-tsdk/plugin-turbine","pluginType":"core","aliases":[],"flags":{"log-level":{"name":"log-level","type":"option","hidden":true,"multiple":false,"options":["debug"]},"file":{"name":"file","type":"option","char":"f","description":"path of the file to be uploaded to Turbine","required":true,"multiple":false},"username":{"name":"username","type":"option","char":"u","description":"Turbine username","multiple":false,"default":""},"password":{"name":"password","type":"option","char":"p","description":"Turbine password","multiple":false,"default":""},"turbine-url":{"name":"turbine-url","type":"option","description":"the url of the turbine instance [https://turbine.acme.com]","required":true,"multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"turbine:connector:keys:generate":{"id":"turbine:connector:keys:generate","description":"Use to push an integration to Turbine","strict":true,"pluginName":"@sw-tsdk/plugin-turbine","pluginAlias":"@sw-tsdk/plugin-turbine","pluginType":"core","aliases":[],"flags":{"log-level":{"name":"log-level","type":"option","hidden":true,"multiple":false,"options":["debug"]},"username":{"name":"username","type":"option","char":"u","description":"Turbine username","multiple":false,"default":""},"password":{"name":"password","type":"option","char":"p","description":"Turbine password","multiple":false,"default":""},"signing-password":{"name":"signing-password","type":"option","description":"password used for the private key","multiple":false,"default":""},"key-name":{"name":"key-name","type":"option","description":"name used for the key (default: username)","multiple":false},"turbine-url":{"name":"turbine-url","type":"option","description":"the url of the turbine instance [https://turbine.acme.com]","required":true,"multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"turbine:connector:keys:list":{"id":"turbine:connector:keys:list","description":"Use to push an integration to Turbine","strict":true,"pluginName":"@sw-tsdk/plugin-turbine","pluginAlias":"@sw-tsdk/plugin-turbine","pluginType":"core","aliases":[],"flags":{"log-level":{"name":"log-level","type":"option","hidden":true,"multiple":false,"options":["debug"]},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]}}}
1
+ {"version":"2.0.1-next.68+0b70370","commands":{"turbine:login":{"id":"turbine:login","description":"Use to login to Turbine","strict":true,"pluginName":"@sw-tsdk/plugin-turbine","pluginAlias":"@sw-tsdk/plugin-turbine","pluginType":"core","aliases":[],"flags":{"log-level":{"name":"log-level","type":"option","hidden":true,"multiple":false,"options":["debug"]},"username":{"name":"username","type":"option","char":"u","description":"Turbine username","multiple":false},"password":{"name":"password","type":"option","char":"p","description":"Turbine password","multiple":false},"turbine-url":{"name":"turbine-url","type":"option","description":"the url of the turbine instance [https://turbine.acme.com]","required":true,"multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"turbine:connector:push":{"id":"turbine:connector:push","description":"Use to push an integration to Turbine","strict":true,"pluginName":"@sw-tsdk/plugin-turbine","pluginAlias":"@sw-tsdk/plugin-turbine","pluginType":"core","aliases":[],"flags":{"log-level":{"name":"log-level","type":"option","hidden":true,"multiple":false,"options":["debug"]},"file":{"name":"file","type":"option","char":"f","description":"path of the file to be uploaded to Turbine","required":true,"multiple":false},"username":{"name":"username","type":"option","char":"u","description":"Turbine username","multiple":false,"default":""},"password":{"name":"password","type":"option","char":"p","description":"Turbine password","multiple":false,"default":""},"turbine-url":{"name":"turbine-url","type":"option","description":"the url of the turbine instance [https://turbine.acme.com]","required":true,"multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"turbine:connector:keys:generate":{"id":"turbine:connector:keys:generate","description":"Use to generate and store signing keys in Turbine","strict":true,"pluginName":"@sw-tsdk/plugin-turbine","pluginAlias":"@sw-tsdk/plugin-turbine","pluginType":"core","aliases":[],"flags":{"log-level":{"name":"log-level","type":"option","hidden":true,"multiple":false,"options":["debug"]},"username":{"name":"username","type":"option","char":"u","description":"Turbine username","multiple":false,"default":""},"password":{"name":"password","type":"option","char":"p","description":"Turbine password","multiple":false,"default":""},"signing-password":{"name":"signing-password","type":"option","description":"password used for the private key","multiple":false,"default":""},"key-name":{"name":"key-name","type":"option","description":"name used for the key (default: username)","multiple":false},"turbine-url":{"name":"turbine-url","type":"option","description":"the url of the turbine instance [https://turbine.acme.com]","required":true,"multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"turbine:connector:keys:list:local":{"id":"turbine:connector:keys:list:local","description":"Use to list local keys","strict":true,"pluginName":"@sw-tsdk/plugin-turbine","pluginAlias":"@sw-tsdk/plugin-turbine","pluginType":"core","aliases":[],"flags":{"log-level":{"name":"log-level","type":"option","hidden":true,"multiple":false,"options":["debug"]},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"turbine:connector:keys:list:remote":{"id":"turbine:connector:keys:list:remote","description":"Use to list remote keys","strict":true,"pluginName":"@sw-tsdk/plugin-turbine","pluginAlias":"@sw-tsdk/plugin-turbine","pluginType":"core","aliases":[],"flags":{"log-level":{"name":"log-level","type":"option","hidden":true,"multiple":false,"options":["debug"]},"username":{"name":"username","type":"option","char":"u","description":"Turbine username","multiple":false},"password":{"name":"password","type":"option","char":"p","description":"Turbine password","multiple":false},"turbine-url":{"name":"turbine-url","type":"option","description":"the url of the turbine instance [https://turbine.acme.com]","required":true,"multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]}}}
package/package.json CHANGED
@@ -5,11 +5,11 @@
5
5
  },
6
6
  "dependencies": {
7
7
  "@oclif/core": "1.16.4",
8
- "@sw-tsdk/common": "^2.0.1-next.47+7fbdb67",
9
- "@sw-tsdk/connector": "^2.0.1-next.47+7fbdb67",
10
- "@sw-tsdk/core": "^2.0.1-next.47+7fbdb67",
11
- "@sw-tsdk/docker": "^2.0.1-next.47+7fbdb67",
12
- "@sw-tsdk/turbine": "^2.0.1-next.47+7fbdb67",
8
+ "@sw-tsdk/common": "^2.0.1-next.68+0b70370",
9
+ "@sw-tsdk/connector": "^2.0.1-next.68+0b70370",
10
+ "@sw-tsdk/core": "^2.0.1-next.68+0b70370",
11
+ "@sw-tsdk/docker": "^2.0.1-next.68+0b70370",
12
+ "@sw-tsdk/turbine": "^2.0.1-next.68+0b70370",
13
13
  "@swimlane/cosign": "1.3.1",
14
14
  "date-fns": "2.29.3",
15
15
  "fs-extra": "10.1.0",
@@ -57,15 +57,15 @@
57
57
  },
58
58
  "scripts": {
59
59
  "build": "rm -rf lib && tsc",
60
+ "postbuild": "oclif manifest && yarn docs",
60
61
  "lint": "eslint . --ext .ts --config .eslintrc",
61
- "pretest": "tsc -p test --noEmit",
62
62
  "postpack": "shx rm -f oclif.manifest.json",
63
63
  "prepack": "yarn build && oclif manifest && oclif readme",
64
- "version": "oclif readme",
65
- "test": "echo NO TESTS",
64
+ "docs": "oclif readme",
65
+ "test": "jest --passWithNoTests",
66
66
  "posttest": "yarn lint",
67
67
  "dev:setup": "npm link"
68
68
  },
69
- "version": "2.0.1-next.47+7fbdb67",
70
- "gitHead": "7fbdb67d89f93fbe8879a5d6afabde19a88ed888"
69
+ "version": "2.0.1-next.68+0b70370",
70
+ "gitHead": "0b70370ed4e350fbe09ed4b97947ebdfefba6f3e"
71
71
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../src/commands/turbine/connector/keys/list.ts"],"names":[],"mappings":";;;AAAA,sCAAiC;AACjC,wCAAkC;AAClC,yCAA8B;AAC9B,+CAAwC;AAExC,qCAAqC;AACrC,MAAa,IAAK,SAAQ,WAAI;IAQ5B,KAAK,CAAC,GAAG;QACP,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;QAEtB,MAAM,WAAW,GAAG,IAAA,gBAAI,EAAC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;QACvD,MAAM,WAAW,GAAG,MAAM,IAAA,kBAAO,EAAC,WAAW,CAAC,CAAA;QAE9C,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IACrC,CAAC;;AAfH,oBAgBC;AAfQ,gBAAW,GAAG,uCAAuC,CAAA;AAErD,UAAK,mCACP,WAAI,CAAC,SAAS,KACjB,IAAI,EAAE,YAAK,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,GAAG,EAAC,CAAC,IAC9B"}