@lazycatcloud/lzc-cli 1.2.11 → 1.2.13
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/lib/shellapi.js +3 -4
- package/package.json +1 -1
package/lib/shellapi.js
CHANGED
|
@@ -21,7 +21,9 @@ function getShellAPIConfigDir() {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
class ShellApi {
|
|
24
|
-
constructor() {
|
|
24
|
+
constructor() {}
|
|
25
|
+
|
|
26
|
+
async init() {
|
|
25
27
|
const pbShell = this.initShell();
|
|
26
28
|
const { addr, cred } = this.readShellApiInfo();
|
|
27
29
|
this.client = new pbShell.ShellCore(
|
|
@@ -32,9 +34,6 @@ class ShellApi {
|
|
|
32
34
|
const md = new grpc.Metadata();
|
|
33
35
|
md.add("lzc-shellapi-cred", cred);
|
|
34
36
|
this.metadata = md;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
async init() {
|
|
38
37
|
this.info = await this.initBoxInfo();
|
|
39
38
|
}
|
|
40
39
|
|