@acanthis-dec/cli 0.2.3 → 0.3.1

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 CHANGED
@@ -28,7 +28,7 @@ Running `acanthis` with no arguments in an interactive terminal launches the gui
28
28
  acanthis
29
29
  ```
30
30
 
31
- The wizard probes server connectivity (prompting for a new `serverUrl` or token if unreachable), lets you select a novel source, browse the cached library, search by keyword, or enter a novel ID/URL directly, multiselect target volumes, pick `split` or `merged` mode, and track export progress.
31
+ The wizard probes server connectivity (prompting for a new `serverUrl` or token if unreachable), lets you select a novel source, browse the cached library, search by keyword, or enter a novel ID/URL directly, multiselect target volumes, pick `split` or `merged` mode, choose the base output directory with inline ghost-text / Tab directory autocompletion, and track export progress.
32
32
 
33
33
  > Running `acanthis` with no subcommand in a **non-TTY** environment (such as CI or piped stdin/stdout) prints help and exits immediately with exit code `1` without blocking.
34
34
 
@@ -43,7 +43,8 @@ Export a novel (by numeric ID or URL such as `https://www.linovelib.com/novel/35
43
43
  | `--server <url>` | `-s` | Config / `http://localhost:5301` | Acanthis API server base URL |
44
44
  | `--source <platform>` | — | Config / `linovelib` | Novel source identifier |
45
45
  | `--token <token>` | `-t` | Config / unset | Optional Bearer auth token |
46
- | `--output <dir>` | `-o` | Config / `.` | Output directory |
46
+ | `--output <dir>` | `-o` | Config / `.` | Base output directory (supports relative paths and `~`; creates a `<Title>` subdirectory inside it by default) |
47
+ | `--no-subdir` | — | `subdir = true` | Write EPUB file(s) directly into the base output directory without creating a `<Title>` subdirectory |
47
48
  | `--mode <split\|merged>` | `-m` | `split` | `split` produces `[Author] Title - Volume.epub` per volume; `merged` produces `[Author] Title.epub` (or `(选集)` when subset selected) |
48
49
  | `--merged` | — | `false` | Shortcut overriding `--mode` to `merged` |
49
50
  | `--volumes <spec>` | `-v` | All volumes | Comma-separated 1-based indices, ranges (e.g. `1,3-5`), or volume IDs |
package/README.zh-CN.md CHANGED
@@ -28,7 +28,7 @@ npx @acanthis-dec/cli --help
28
28
  acanthis
29
29
  ```
30
30
 
31
- 向导会自动探测服务端连通性(不可达时引导输入新的 `serverUrl` 或访问令牌并可选保存),支持选择书源、浏览服务端已缓存书库、关键词搜索或直接输入作品 ID/URL,随后多选目标分卷、选择 `split` / `merged` 模式并实时展示导出进度。
31
+ 向导会自动探测服务端连通性(不可达时引导输入新的 `serverUrl` 或访问令牌并可选保存),支持选择书源、浏览服务端已缓存书库、关键词搜索或直接输入作品 ID/URL,随后多选目标分卷、选择 `split` / `merged` 模式、通过带行内幽灵建议与 Tab 自动补全的输入框选定输出基目录,并实时展示导出进度。
32
32
 
33
33
  > 在**非 TTY 环境**(如 CI 流水线或管道重定向)下不带子命令调用 `acanthis` 时,会直接打印帮助并以退出码 `1` 退出,绝不挂起等待输入。
34
34
 
@@ -43,7 +43,8 @@ acanthis
43
43
  | `--server <url>` | `-s` | 配置值 / `http://localhost:5301` | Acanthis API 服务端基础地址 |
44
44
  | `--source <platform>` | — | 配置值 / `linovelib` | 书源标识 |
45
45
  | `--token <token>` | `-t` | 配置值 / 未设置 | 可选 Bearer 访问令牌 |
46
- | `--output <dir>` | `-o` | 配置值 / `.` | 导出文件输出目录 |
46
+ | `--output <dir>` | `-o` | 配置值 / `.` | 输出基目录(支持相对路径与 `~`;默认在其下以 `<书名>` 创建子目录) |
47
+ | `--no-subdir` | — | `subdir = true` | 直接将 EPUB 文件写入输出基目录,不创建 `<书名>` 子目录 |
47
48
  | `--mode <split\|merged>` | `-m` | `split` | `split` 按分卷输出 `[作者] 书名 - 分卷名.epub`;`merged` 合并输出 `[作者] 书名.epub`(选定部分分卷时为 `(选集)`) |
48
49
  | `--merged` | — | `false` | 快捷开关,等价于 `--mode merged` |
49
50
  | `--volumes <spec>` | `-v` | 全部分卷 | 逗号分隔的 1 基卷序号、闭区间(如 `1,3-5`)或分卷 ID |