playlist-admin 2.15.93 → 2.15.99
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/cli/index.js +25 -2
- package/package.json +1 -1
package/cli/index.js
CHANGED
|
@@ -19,10 +19,15 @@ Usage:
|
|
|
19
19
|
playlist-admin update| upgrade 更新 CLI(npm)並提示 GUI 更新方式
|
|
20
20
|
playlist-admin where 顯示根目錄 / exe / 資料夾位置
|
|
21
21
|
playlist-admin doctor [--fast] [--verbose] [--no-stt]
|
|
22
|
-
|
|
22
|
+
音訊庫健康檢查(覆蓋率/損毀/品質/語言/額度)
|
|
23
23
|
|
|
24
24
|
playlist-admin pipeline [--step N] Run full pipeline (or from step N)
|
|
25
25
|
playlist-admin podcast Run podcast pipeline
|
|
26
|
+
playlist-admin podcast add <name> <rssUrl> Add podcast subscription
|
|
27
|
+
playlist-admin podcast remove <name> Remove podcast subscription
|
|
28
|
+
playlist-admin podcast list List subscriptions
|
|
29
|
+
playlist-admin podcast refresh-rag Refresh podcast RAG index
|
|
30
|
+
playlist-admin podcast dir <name> Show podcast download directory
|
|
26
31
|
playlist-admin status Show status
|
|
27
32
|
playlist-admin play <歌曲名> 播放(本機庫優先,找不到走串流)
|
|
28
33
|
playlist-admin organize 歌單外歌曲移入「未分類」資料夾
|
|
@@ -38,6 +43,7 @@ Usage:
|
|
|
38
43
|
playlist-admin skill list List bundled opencode skills
|
|
39
44
|
playlist-admin skill install [name] [--dir X] Install skill(s) to opencode (~/.config/opencode/skills)
|
|
40
45
|
playlist-admin skill path [name] Print installed path of a skill
|
|
46
|
+
playlist-admin tui Launch interactive TUI (Text User Interface)
|
|
41
47
|
`;
|
|
42
48
|
|
|
43
49
|
function projectRoot() {
|
|
@@ -383,6 +389,23 @@ async function main() {
|
|
|
383
389
|
console.log(`資料 : ${path.join(root || '?', 'data')}`);
|
|
384
390
|
return;
|
|
385
391
|
}
|
|
392
|
+
if (args[0] === 'tui') {
|
|
393
|
+
// Launch TUI mode
|
|
394
|
+
const root = projectRoot();
|
|
395
|
+
if (!root) {
|
|
396
|
+
console.error('找不到專案根目錄(pubspec.yaml)。請在專案內執行,或設定 PA_ROOT');
|
|
397
|
+
process.exit(1);
|
|
398
|
+
}
|
|
399
|
+
const exe = exePath(root);
|
|
400
|
+
if (!exe) {
|
|
401
|
+
console.error(`找不到 build 好的 exe。
|
|
402
|
+
請先在專案內執行: flutter build windows --release
|
|
403
|
+
或設定 PA_ROOT=<專案根目錄>`);
|
|
404
|
+
process.exit(1);
|
|
405
|
+
}
|
|
406
|
+
forward(exe, ['tui']);
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
386
409
|
|
|
387
410
|
const root = projectRoot();
|
|
388
411
|
if (!root) {
|
|
@@ -420,4 +443,4 @@ function cmdUpdate() {
|
|
|
420
443
|
main().catch((e) => {
|
|
421
444
|
console.error(e);
|
|
422
445
|
process.exit(1);
|
|
423
|
-
});
|
|
446
|
+
});
|