@ledgerhq/vault-cli 1.7.1 → 1.8.0
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare type DestroyCommandOptions = {
|
|
2
2
|
remoteURL: string;
|
|
3
3
|
name: string;
|
|
4
|
+
wait?: boolean;
|
|
4
5
|
};
|
|
5
6
|
export declare const destroyCommand: (options: DestroyCommandOptions) => Promise<void>;
|
|
6
7
|
declare const _default: {
|
|
@@ -22,6 +23,12 @@ declare const _default: {
|
|
|
22
23
|
type: StringConstructor;
|
|
23
24
|
defaultValue: string;
|
|
24
25
|
required?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
name: string;
|
|
28
|
+
description: string;
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
defaultValue: boolean;
|
|
31
|
+
required?: undefined;
|
|
25
32
|
})[];
|
|
26
33
|
run: (options: DestroyCommandOptions) => Promise<void>;
|
|
27
34
|
};
|
package/bin/commands/destroy.js
CHANGED
|
@@ -19,6 +19,7 @@ const destroyCommand = (options) => __awaiter(void 0, void 0, void 0, function*
|
|
|
19
19
|
const destroyOptions = {
|
|
20
20
|
remoteURL: options.remoteURL,
|
|
21
21
|
name: options.name,
|
|
22
|
+
wait: options.wait,
|
|
22
23
|
};
|
|
23
24
|
yield vault_common_1.destroy(destroyOptions, { logger: logger_1.default });
|
|
24
25
|
});
|
|
@@ -45,6 +46,12 @@ exports.default = {
|
|
|
45
46
|
type: String,
|
|
46
47
|
defaultValue: vault_common_1.DEFAULT_VAULT_REMOTE_URL,
|
|
47
48
|
},
|
|
49
|
+
{
|
|
50
|
+
name: "wait",
|
|
51
|
+
description: "If passed, will exit command only once instance has completely disappeared from cluster",
|
|
52
|
+
type: Boolean,
|
|
53
|
+
defaultValue: false,
|
|
54
|
+
},
|
|
48
55
|
],
|
|
49
56
|
run: exports.destroyCommand,
|
|
50
57
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"destroy.js","sourceRoot":"","sources":["../../src/commands/destroy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yDAIgC;AAChC,uDAA+B;
|
|
1
|
+
{"version":3,"file":"destroy.js","sourceRoot":"","sources":["../../src/commands/destroy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yDAIgC;AAChC,uDAA+B;AAQxB,MAAM,cAAc,GAAG,CAC5B,OAA8B,EACf,EAAE;IACjB,MAAM,cAAc,GAAmB;QACrC,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,IAAI,EAAE,OAAO,CAAC,IAAI;KACnB,CAAC;IACF,MAAM,sBAAO,CAAC,cAAc,EAAE,EAAE,MAAM,EAAN,gBAAM,EAAE,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AATW,QAAA,cAAc,kBASzB;AAEF,kBAAe;IACb,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,8DAA8D;IAC3E,IAAI,EAAE;QACJ;YACE,MAAM,EAAE,UAAU;YAClB,OAAO,EAAE,CAAC,0CAA0C,CAAC;SACtD;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,2CAA2C;YACxD,QAAQ,EAAE,IAAI;SACf;QACD;YACE,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,oCAAoC,uCAAwB,IAAI;YAC7E,IAAI,EAAE,MAAM;YACZ,YAAY,EAAE,uCAAwB;SACvC;QAED;YACE,IAAI,EAAE,MAAM;YACZ,WAAW,EACT,yFAAyF;YAC3F,IAAI,EAAE,OAAO;YACb,YAAY,EAAE,KAAK;SACpB;KACF;IACD,GAAG,EAAE,sBAAc;CACpB,CAAC"}
|
package/bin/commands/index.d.ts
CHANGED
|
@@ -152,6 +152,37 @@ declare const _default: {
|
|
|
152
152
|
preset?: string | undefined;
|
|
153
153
|
values?: string | undefined;
|
|
154
154
|
}) => Promise<void>;
|
|
155
|
+
} | {
|
|
156
|
+
command: string;
|
|
157
|
+
description: string;
|
|
158
|
+
help: {
|
|
159
|
+
header: string;
|
|
160
|
+
content: string[];
|
|
161
|
+
}[];
|
|
162
|
+
options: ({
|
|
163
|
+
name: string;
|
|
164
|
+
type: StringConstructor;
|
|
165
|
+
description: string;
|
|
166
|
+
required: boolean;
|
|
167
|
+
defaultValue?: undefined;
|
|
168
|
+
} | {
|
|
169
|
+
name: string;
|
|
170
|
+
description: string;
|
|
171
|
+
type: StringConstructor;
|
|
172
|
+
defaultValue: string;
|
|
173
|
+
required?: undefined;
|
|
174
|
+
} | {
|
|
175
|
+
name: string;
|
|
176
|
+
description: string;
|
|
177
|
+
type: BooleanConstructor;
|
|
178
|
+
defaultValue: boolean;
|
|
179
|
+
required?: undefined;
|
|
180
|
+
})[];
|
|
181
|
+
run: (options: {
|
|
182
|
+
remoteURL: string;
|
|
183
|
+
name: string;
|
|
184
|
+
wait?: boolean | undefined;
|
|
185
|
+
}) => Promise<void>;
|
|
155
186
|
} | {
|
|
156
187
|
command: string;
|
|
157
188
|
description: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/vault-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "A various utility command-line for Vault development",
|
|
5
5
|
"homepage": "https://github.com/LedgerHQ/vault-js",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@ledgerhq/cryptoassets": "^6.28.2",
|
|
25
25
|
"@ledgerhq/hw-transport-node-hid": "^6.24.1",
|
|
26
26
|
"@ledgerhq/live-common-stub": "^1.4.2",
|
|
27
|
-
"@ledgerhq/vault-common": "^1.
|
|
27
|
+
"@ledgerhq/vault-common": "^1.8.0",
|
|
28
28
|
"axios": "^0.21.0",
|
|
29
29
|
"bignumber.js": "^9.0.1",
|
|
30
30
|
"body-parser": "^1.19.0",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"@types/node": "^15.0.2",
|
|
51
51
|
"@types/progress": "^2.0.3"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "5d995d1669afdbbaa15c72af8bcf31ff2922071b"
|
|
54
54
|
}
|