@lapius/bin-cli 0.2.8 → 0.3.0
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 +15 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -32,11 +32,26 @@ bin view <id> # 表示(-f <file> で1ファイル
|
|
|
32
32
|
bin edit <id> main.go --remove old.go -t "新しいタイトル" --public
|
|
33
33
|
bin patch <id> main.go --insert 3 --text "// 追加" # 特定の行だけ追加(--append / --replace 4-6 / --delete 2-3 / --after "文字列" / --before "文字列")
|
|
34
34
|
bin edit <id> js/script.js --lines 70-82 --as script.js # 行範囲とGist上の名前は別オプションでも指定できる(file:A-B=名前 と同じ)
|
|
35
|
+
bin edit <id> a.js --lines 1-9 --as x.js b.js --lines 5- --as y.js # 複数ファイルでは各ファイルの直後に付けると、そのファイルだけに効く
|
|
35
36
|
bin patch <id> new.js --append --from main.go:70-84 # 無いファイルは追加系なら新規作成。本文は --text・--from <ファイル>[:A-B]・`-`(標準入力)
|
|
36
37
|
bin create main.go:70-84 / bin edit <id> main.go:70-=part.js # ローカルの行範囲だけ送る(70- は末尾まで、-20 は先頭から、=名前でGist上の名前)
|
|
37
38
|
bin clone <id> [dir] # ファイルをダウンロード
|
|
38
39
|
bin fork <id> -t "派生版" # コピーして自分の新しいGistを作る(自分のGistも可、公開範囲は元のまま)
|
|
39
40
|
bin delete <id> # 削除(確認あり、-yで省略)
|
|
41
|
+
bin delete <id1> <id2> -y # 複数まとめて削除(--tag / -q / --since で絞り込みも可、--dry-run で確認のみ)
|
|
42
|
+
bin diff [<id>] [file] # ローカルと Gist の差分(--rev ~1 で過去版と比較)
|
|
43
|
+
bin mv <id> old.js new.js # ファイル名変更
|
|
44
|
+
bin cp <id> a.js b.js # コピー(--to <id> / --new で別 Gist へ)
|
|
45
|
+
bin undo [<id>] / bin restore <id> ~2 # 直前の変更を取り消す / 過去のリビジョンへ戻す(--dry-run あり)
|
|
46
|
+
bin open|copy|share [<id>] # ブラウザで開く / クリップボードへ / URL・埋め込み・QR を表示
|
|
47
|
+
bin search <text> # 自分の Gist を全文検索
|
|
48
|
+
bin watch <id> main.js # 保存するたびに自動反映
|
|
49
|
+
bin alias set blog <id> # 短い名前を付ける(以降 bin edit blog …)
|
|
50
|
+
bin visibility private --tag draft # 公開範囲を一括変更 / bin bulk tag --add x
|
|
51
|
+
bin edit <id> --editor # $EDITOR で編集して反映
|
|
52
|
+
bin create --clipboard -f note.txt # クリップボードから作成
|
|
53
|
+
bin create dir/ --exclude "*.log" # --include / --exclude / .binignore で絞り込み
|
|
54
|
+
bin patch <id> a.js --replace @init --text "..." # 行番号の代わりに @関数名 や /開始/,/終了/ も指定可
|
|
40
55
|
bin star <id> / bin starred # スター・スターしたGistの一覧
|
|
41
56
|
bin tag <id> python cli # タグを設定(bin list --tag python で絞り込み)
|
|
42
57
|
bin run <id> # スクリプトを実行(実行前に内容を表示して確認)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lapius/bin-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "bin.lapius7.com(LapBin)の CLI クライアント",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"arm64"
|
|
31
31
|
],
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@lapius/bin-cli-linux-x64": "0.
|
|
34
|
-
"@lapius/bin-cli-linux-arm64": "0.
|
|
35
|
-
"@lapius/bin-cli-darwin-x64": "0.
|
|
36
|
-
"@lapius/bin-cli-darwin-arm64": "0.
|
|
37
|
-
"@lapius/bin-cli-win32-x64": "0.
|
|
33
|
+
"@lapius/bin-cli-linux-x64": "0.3.0",
|
|
34
|
+
"@lapius/bin-cli-linux-arm64": "0.3.0",
|
|
35
|
+
"@lapius/bin-cli-darwin-x64": "0.3.0",
|
|
36
|
+
"@lapius/bin-cli-darwin-arm64": "0.3.0",
|
|
37
|
+
"@lapius/bin-cli-win32-x64": "0.3.0"
|
|
38
38
|
}
|
|
39
39
|
}
|