feat(transfer): add mget and mput batch transfers with safety guards
- Add pages mget with remote glob/--recursive/--dry-run/--resume, traversal rejection, 0700/0600 permissions, and no-clobber - Add pages mput with local glob/--recursive/--strip-ext/--dry-run and create-only CAS via PUT /_/api/v1/pages/path:... - Enforce symlink, binary, 1 MiB, duplicate-path, and batch size caps before upload - Add unit tests and update README.md and docs/client-contract.md
This commit is contained in:
1 parent
13a4416af9
commit
a1956dcc6a
4 files changed
+476
-2
No files matched your search
@@ -152,8 +152,10 @@ OSの言語からは推測しません。最初に名前付きプロファイル
|
||||
| `ls` / `cd` / `pwd` | Semantic Pathをたどる。仮想フォルダにも移動可能 |
|
||||
| `cat` / `view` | 正本の出力(`--stream` で逐次出力+終端SHA-256検証)/`$PAGER`で閲覧 |
|
||||
| `get ADDRESS LOCAL` | 正本をファイルへ安全保存(`--resume` / `--max-bytes` / `--timeout`、既存ファイルは上書きしない) |
|
||||
| `mget REMOTE LOCAL_DIR` | リモートPath/glob(`-r` / `--dry-run` / `--resume`)で一括ダウンロード。既存ファイルは上書きしない |
|
||||
| `edit ADDRESS` | `$EDITOR`で編集。未存在Pathは確認後に新規作成。Wikiはauthoring Markdown、他のテキストは原文 |
|
||||
| `put LOCAL ADDRESS --base REVISION_UUID` | 明示した基点RevisionとのCASで更新 |
|
||||
| `mput LOCAL... REMOTE_PREFIX` | ローカルファイル/globから新規Pageを一括作成(`-r` / `--strip-ext` / `--dry-run`、既存Pathは412で停止) |
|
||||
| `recover [PATH]` | 退避された原稿の一覧表示・再開・破棄(`--list` / `--edit` / `--discard`) |
|
||||
| `search QUERY` | 権限付きの検索候補 |
|
||||
| `open ADDRESS` | ブラウザで閲覧。ブラウザ側ログインを使用 |
|
||||
|
||||
Reference in new issue
Block a user