pdlab-cli 0.2.1 → 0.2.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 +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ npm install -g pdlab-cli
|
|
|
20
20
|
pdlab login
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
默认连官方部署 `https://1836.online`,装完直接就能用。
|
|
23
|
+
默认连官方部署 `https://www.1836.online`,装完直接就能用。
|
|
24
24
|
自建实例才需要指定地址,指定过一次之后会记在配置文件里:
|
|
25
25
|
|
|
26
26
|
```bash
|
|
@@ -127,7 +127,7 @@ pdlab post review post_123 --action reject --comment "缺少数据来源,请
|
|
|
127
127
|
```
|
|
128
128
|
|
|
129
129
|
API 地址的解析顺序:`--api-url` 参数 > `PDLAB_API_URL` 环境变量 > 配置文件 > 默认地址
|
|
130
|
-
(`https://1836.online`)。所有命令都支持 `--api-url`,
|
|
130
|
+
(`https://www.1836.online`)。所有命令都支持 `--api-url`,
|
|
131
131
|
包括 `project` / `post` 这些资源命令。`pdlab config get` 会同时打出配置文件里写了什么、
|
|
132
132
|
以及这次实际会用哪个地址。
|
|
133
133
|
|
package/dist/index.js
CHANGED
|
@@ -48,7 +48,7 @@ var CliError = class extends Error {
|
|
|
48
48
|
// src/config.ts
|
|
49
49
|
var CONFIG_DIR = process.env.PDLAB_CONFIG_DIR ?? (0, import_path.join)((0, import_os.homedir)(), ".pdlab");
|
|
50
50
|
var CONFIG_FILE = (0, import_path.join)(CONFIG_DIR, "config.json");
|
|
51
|
-
var DEFAULT_API_URL = "https://1836.online";
|
|
51
|
+
var DEFAULT_API_URL = "https://www.1836.online";
|
|
52
52
|
function readConfig() {
|
|
53
53
|
if (!(0, import_fs.existsSync)(CONFIG_FILE)) return {};
|
|
54
54
|
try {
|