feat: persist config from uvx bootstrap
This commit is contained in:
@@ -12,11 +12,21 @@ uvx --from git+https://gitea.shujk.top/shujakuin/shusub2.git shusub2 \
|
||||
--api-url https://codex.server2.shujk.top/1232131231313123/api/tui/accounts
|
||||
```
|
||||
|
||||
Bootstrap a new machine from `uvx`: save the API URL, install `shusub2` as a
|
||||
user command, then run it later as `shusub2`:
|
||||
|
||||
```bash
|
||||
uvx --from git+https://gitea.shujk.top/shujakuin/shusub2.git shusub2 \
|
||||
--api-url https://codex.server2.shujk.top/1232131231313123/api/tui/accounts \
|
||||
--install
|
||||
shusub2
|
||||
```
|
||||
|
||||
Install as a user command:
|
||||
|
||||
```bash
|
||||
uv tool install git+https://gitea.shujk.top/shujakuin/shusub2.git
|
||||
shusub2 --api-url https://codex.server2.shujk.top/1232131231313123/api/tui/accounts
|
||||
shusub2 --api-url https://codex.server2.shujk.top/1232131231313123/api/tui/accounts --save-config
|
||||
```
|
||||
|
||||
Configure the default public API URL for `shusub2`:
|
||||
@@ -58,6 +68,8 @@ Configuration:
|
||||
|
||||
- `--api-url` / `SUB2API_QUOTA_TUI_API_URL`
|
||||
- `--status-url` / `SHUSUB2_STATUS_URL`
|
||||
- `--save-config`
|
||||
- `--install`
|
||||
- `--refresh-seconds` / `SUB2API_QUOTA_TUI_REFRESH_SECONDS`
|
||||
- `--timeout` / `SUB2API_QUOTA_TUI_TIMEOUT`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user