@chabokan.net/cli 0.7.1 → 0.7.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 +10 -10
- package/lib/base.js +7 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ $ npm install -g @chabokan.net/cli
|
|
|
19
19
|
$ chabok COMMAND
|
|
20
20
|
running command...
|
|
21
21
|
$ chabok (-v|--version|version)
|
|
22
|
-
@chabokan.net/cli/0.7.
|
|
22
|
+
@chabokan.net/cli/0.7.2 darwin-x64 node-v14.17.5
|
|
23
23
|
$ chabok --help [COMMAND]
|
|
24
24
|
USAGE
|
|
25
25
|
$ chabok COMMAND
|
|
@@ -52,7 +52,7 @@ OPTIONS
|
|
|
52
52
|
-u, --user=user default user
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
_See code: [src/commands/change-user.ts](https://github.com/chabokan/cli/blob/v0.7.
|
|
55
|
+
_See code: [src/commands/change-user.ts](https://github.com/chabokan/cli/blob/v0.7.2/src/commands/change-user.ts)_
|
|
56
56
|
|
|
57
57
|
## `chabok config-clear`
|
|
58
58
|
|
|
@@ -66,7 +66,7 @@ OPTIONS
|
|
|
66
66
|
-h, --help show CLI help
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
_See code: [src/commands/config-clear.ts](https://github.com/chabokan/cli/blob/v0.7.
|
|
69
|
+
_See code: [src/commands/config-clear.ts](https://github.com/chabokan/cli/blob/v0.7.2/src/commands/config-clear.ts)_
|
|
70
70
|
|
|
71
71
|
## `chabok deploy`
|
|
72
72
|
|
|
@@ -82,7 +82,7 @@ OPTIONS
|
|
|
82
82
|
-s, --service=service service name
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
_See code: [src/commands/deploy.ts](https://github.com/chabokan/cli/blob/v0.7.
|
|
85
|
+
_See code: [src/commands/deploy.ts](https://github.com/chabokan/cli/blob/v0.7.2/src/commands/deploy.ts)_
|
|
86
86
|
|
|
87
87
|
## `chabok help [COMMAND]`
|
|
88
88
|
|
|
@@ -116,7 +116,7 @@ OPTIONS
|
|
|
116
116
|
-u, --username=username your username
|
|
117
117
|
```
|
|
118
118
|
|
|
119
|
-
_See code: [src/commands/login.ts](https://github.com/chabokan/cli/blob/v0.7.
|
|
119
|
+
_See code: [src/commands/login.ts](https://github.com/chabokan/cli/blob/v0.7.2/src/commands/login.ts)_
|
|
120
120
|
|
|
121
121
|
## `chabok logs`
|
|
122
122
|
|
|
@@ -131,7 +131,7 @@ OPTIONS
|
|
|
131
131
|
-s, --service=service service name
|
|
132
132
|
```
|
|
133
133
|
|
|
134
|
-
_See code: [src/commands/logs.ts](https://github.com/chabokan/cli/blob/v0.7.
|
|
134
|
+
_See code: [src/commands/logs.ts](https://github.com/chabokan/cli/blob/v0.7.2/src/commands/logs.ts)_
|
|
135
135
|
|
|
136
136
|
## `chabok resize`
|
|
137
137
|
|
|
@@ -149,7 +149,7 @@ OPTIONS
|
|
|
149
149
|
-s, --service=service service name
|
|
150
150
|
```
|
|
151
151
|
|
|
152
|
-
_See code: [src/commands/resize.ts](https://github.com/chabokan/cli/blob/v0.7.
|
|
152
|
+
_See code: [src/commands/resize.ts](https://github.com/chabokan/cli/blob/v0.7.2/src/commands/resize.ts)_
|
|
153
153
|
|
|
154
154
|
## `chabok restart`
|
|
155
155
|
|
|
@@ -164,7 +164,7 @@ OPTIONS
|
|
|
164
164
|
-s, --service=service service name
|
|
165
165
|
```
|
|
166
166
|
|
|
167
|
-
_See code: [src/commands/restart.ts](https://github.com/chabokan/cli/blob/v0.7.
|
|
167
|
+
_See code: [src/commands/restart.ts](https://github.com/chabokan/cli/blob/v0.7.2/src/commands/restart.ts)_
|
|
168
168
|
|
|
169
169
|
## `chabok start`
|
|
170
170
|
|
|
@@ -179,7 +179,7 @@ OPTIONS
|
|
|
179
179
|
-s, --service=service service name
|
|
180
180
|
```
|
|
181
181
|
|
|
182
|
-
_See code: [src/commands/start.ts](https://github.com/chabokan/cli/blob/v0.7.
|
|
182
|
+
_See code: [src/commands/start.ts](https://github.com/chabokan/cli/blob/v0.7.2/src/commands/start.ts)_
|
|
183
183
|
|
|
184
184
|
## `chabok stop`
|
|
185
185
|
|
|
@@ -194,5 +194,5 @@ OPTIONS
|
|
|
194
194
|
-s, --service=service service name
|
|
195
195
|
```
|
|
196
196
|
|
|
197
|
-
_See code: [src/commands/stop.ts](https://github.com/chabokan/cli/blob/v0.7.
|
|
197
|
+
_See code: [src/commands/stop.ts](https://github.com/chabokan/cli/blob/v0.7.2/src/commands/stop.ts)_
|
|
198
198
|
<!-- commandsstop -->
|
package/lib/base.js
CHANGED
|
@@ -8,6 +8,7 @@ const helper_1 = require("./helper");
|
|
|
8
8
|
const proxy_http_agent_1 = require("proxy-http-agent");
|
|
9
9
|
const fs = tslib_1.__importStar(require("fs"));
|
|
10
10
|
const got_1 = tslib_1.__importDefault(require("got"));
|
|
11
|
+
const https = tslib_1.__importStar(require("https"));
|
|
11
12
|
class default_1 extends command_1.default {
|
|
12
13
|
constructor() {
|
|
13
14
|
super(...arguments);
|
|
@@ -24,7 +25,12 @@ class default_1 extends command_1.default {
|
|
|
24
25
|
return await helper_1.get_all_services(filter, this.axiosConfig);
|
|
25
26
|
}
|
|
26
27
|
init_run() {
|
|
27
|
-
const
|
|
28
|
+
const main_agent = new https.Agent({
|
|
29
|
+
rejectUnauthorized: false
|
|
30
|
+
});
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const gotConfig = { https: main_agent };
|
|
33
|
+
this.axiosConfig.httpsAgent = main_agent;
|
|
28
34
|
this.axiosConfig.baseURL = constants_1.BASE_API_URL;
|
|
29
35
|
gotConfig.prefixUrl = this.axiosConfig.baseURL;
|
|
30
36
|
const proxy = process.env.http_proxy || process.env.https_proxy;
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.7.
|
|
1
|
+
{"version":"0.7.2","commands":{"change-user":{"id":"change-user","description":"switch your default user between logged in users","pluginName":"@chabokan.net/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"user":{"name":"user","type":"option","char":"u","description":"default user"}},"args":[]},"config-clear":{"id":"config-clear","description":"clear config file, data such as auth will be removed.","pluginName":"@chabokan.net/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"deploy":{"id":"deploy","description":"this command help you build and deploy your service to chabokan in easy way.","pluginName":"@chabokan.net/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"path":{"name":"path","type":"option","char":"p","description":"service path in your computer"},"service":{"name":"service","type":"option","char":"s","description":"service name"}},"args":[]},"login":{"id":"login","description":"login to hub.chabokan.net account","pluginName":"@chabokan.net/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"username":{"name":"username","type":"option","char":"u","description":"your username"},"password":{"name":"password","type":"option","char":"p","description":"your password"},"token":{"name":"token","type":"option","char":"t","description":"login with api token"}},"args":[]},"logs":{"id":"logs","description":"read latest logs from service","pluginName":"@chabokan.net/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"service":{"name":"service","type":"option","char":"s","description":"service name"}},"args":[]},"resize":{"id":"resize","description":"resize a service","pluginName":"@chabokan.net/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"service":{"name":"service","type":"option","char":"s","description":"service name"},"ram":{"name":"ram","type":"option","char":"r","description":"RAM"},"cpu":{"name":"cpu","type":"option","char":"c","description":"CPU"},"disk":{"name":"disk","type":"option","char":"d","description":"DISK"}},"args":[]},"restart":{"id":"restart","description":"restart a service","pluginName":"@chabokan.net/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"service":{"name":"service","type":"option","char":"s","description":"service name"}},"args":[]},"start":{"id":"start","description":"start a service","pluginName":"@chabokan.net/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"service":{"name":"service","type":"option","char":"s","description":"service name"}},"args":[]},"stop":{"id":"stop","description":"stop a service","pluginName":"@chabokan.net/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"service":{"name":"service","type":"option","char":"s","description":"service name"}},"args":[]}}}
|