github-reporadar 0.1.0 → 0.1.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/dist-cli/cli.js +23 -20
- package/package.json +1 -1
package/dist-cli/cli.js
CHANGED
|
@@ -477,26 +477,29 @@ function parseArgs(argv) {
|
|
|
477
477
|
}
|
|
478
478
|
return out;
|
|
479
479
|
}
|
|
480
|
-
const
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
npx github-reporadar
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
--
|
|
491
|
-
--
|
|
492
|
-
--
|
|
493
|
-
--
|
|
494
|
-
--
|
|
495
|
-
--
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
480
|
+
const row = (left, right) => ` ${left.padEnd(34)}${right}`;
|
|
481
|
+
const USAGE = [
|
|
482
|
+
"github-reporadar — 自分のGitHub活動を一晩ぶん眺める計器盤",
|
|
483
|
+
"",
|
|
484
|
+
"使い方:",
|
|
485
|
+
row("npx github-reporadar", "同期してからローカルで開く(既定)"),
|
|
486
|
+
row("npx github-reporadar sync", "同期だけ"),
|
|
487
|
+
row("npx github-reporadar brief", "端末に要約を出す"),
|
|
488
|
+
"",
|
|
489
|
+
"フラグ:",
|
|
490
|
+
row("--days N", "取得する期間(1〜365、既定90)。brief は 7 | 30 | 90"),
|
|
491
|
+
row("--port N", "待ち受けポート(既定5177。使用中なら次を探す)"),
|
|
492
|
+
row("--no-open", "ブラウザを開かない"),
|
|
493
|
+
row("--no-sync", "同期せずに手元のデータで開く"),
|
|
494
|
+
row("--data-dir DIR", "データの置き場(既定: $XDG_CACHE_HOME か ~/.cache の github-reporadar/data)"),
|
|
495
|
+
row("--sort KEY", "brief の並び: active | recent | stale"),
|
|
496
|
+
row("--limit N", "brief の件数(既定15)"),
|
|
497
|
+
row("--private", "brief に private repo も出す"),
|
|
498
|
+
"",
|
|
499
|
+
"トークンは gh CLI(gh auth token)から実行時に取り、どこにも保存しません。",
|
|
500
|
+
"待ち受けは 127.0.0.1 だけです。データには private repo 名とコミット文が含まれます。",
|
|
501
|
+
""
|
|
502
|
+
].join("\n");
|
|
500
503
|
function defaultDataDir(env, home) {
|
|
501
504
|
const base = env.XDG_CACHE_HOME && env.XDG_CACHE_HOME !== "" ? env.XDG_CACHE_HOME : join(home, ".cache");
|
|
502
505
|
return join(base, "github-reporadar", "data");
|