update readme

This commit is contained in:
vorotamoroz
2026-03-12 19:46:52 +09:00
parent 4646577f35
commit 84110aee97
+14 -5
View File
@@ -137,7 +137,7 @@ Usage:
livesync-cli [database-path] [options] [command] [command-args] livesync-cli [database-path] [options] [command] [command-args]
Arguments: Arguments:
database-path Path to the local database directory (required) database-path Path to the local database directory (required except for init-settings)
Options: Options:
--settings, -s <path> Path to settings file (default: .livesync/settings.json in local database directory) --settings, -s <path> Path to settings file (default: .livesync/settings.json in local database directory)
@@ -155,7 +155,7 @@ Commands:
put <vaultPath> Read text from standard input and write to local database put <vaultPath> Read text from standard input and write to local database
cat <vaultPath> Write latest file content from local database to standard output cat <vaultPath> Write latest file content from local database to standard output
cat-rev <vaultPath> <revision> Write specific revision content from local database to standard output cat-rev <vaultPath> <revision> Write specific revision content from local database to standard output
ls <prefix> List files as path<TAB>size<TAB>mtime<TAB>revision[*] ls [prefix] List files as path<TAB>size<TAB>mtime<TAB>revision[*]
info <vaultPath> Show file metadata including current and past revisions, conflicts, and chunk list info <vaultPath> Show file metadata including current and past revisions, conflicts, and chunk list
rm <vaultPath> Mark file as deleted in local database rm <vaultPath> Mark file as deleted in local database
resolve <vaultPath> <revision> Resolve conflict by keeping the specified revision resolve <vaultPath> <revision> Resolve conflict by keeping the specified revision
@@ -176,8 +176,8 @@ npm run cli -- [database-path] [options] [command] [command-args]
- `path`: Vault-relative path - `path`: Vault-relative path
- `size`: Size in bytes - `size`: Size in bytes
- `revisions`: Available non-current revisions - `revisions`: Available non-current revisions
- `Chunks`: Number of chunk IDs - `chunks`: Number of chunk IDs
- `child: ...`: Chunk ID list - `children`: Chunk ID list
### Planned options: ### Planned options:
@@ -245,13 +245,16 @@ npm run cli -- /data/vault --settings /data/livesync-settings.json cat ci/test.m
src/apps/cli/ src/apps/cli/
├── commands/ # Command dispatcher and command utilities ├── commands/ # Command dispatcher and command utilities
│ ├── runCommand.ts │ ├── runCommand.ts
│ ├── runCommand.unit.spec.ts
│ ├── types.ts │ ├── types.ts
│ └── utils.ts │ ├── utils.ts
│ └── utils.unit.spec.ts
├── adapters/ # Node.js FileSystem Adapter ├── adapters/ # Node.js FileSystem Adapter
│ ├── NodeConversionAdapter.ts │ ├── NodeConversionAdapter.ts
│ ├── NodeFileSystemAdapter.ts │ ├── NodeFileSystemAdapter.ts
│ ├── NodePathAdapter.ts │ ├── NodePathAdapter.ts
│ ├── NodeStorageAdapter.ts │ ├── NodeStorageAdapter.ts
│ ├── NodeStorageAdapter.unit.spec.ts
│ ├── NodeTypeGuardAdapter.ts │ ├── NodeTypeGuardAdapter.ts
│ ├── NodeTypes.ts │ ├── NodeTypes.ts
│ └── NodeVaultAdapter.ts │ └── NodeVaultAdapter.ts
@@ -270,13 +273,19 @@ src/apps/cli/
│ ├── NodeServiceHub.ts │ ├── NodeServiceHub.ts
│ └── NodeSettingService.ts │ └── NodeSettingService.ts
├── test/ ├── test/
│ ├── test-e2e-two-vaults-common.sh
│ ├── test-e2e-two-vaults-matrix.sh
│ ├── test-e2e-two-vaults-with-docker-linux.sh
│ ├── test-push-pull-linux.sh │ ├── test-push-pull-linux.sh
│ ├── test-setup-put-cat-linux.sh │ ├── test-setup-put-cat-linux.sh
│ └── test-sync-two-local-databases-linux.sh │ └── test-sync-two-local-databases-linux.sh
├── .gitignore ├── .gitignore
├── entrypoint.ts # CLI executable entry point (shebang)
├── main.ts # CLI entry point ├── main.ts # CLI entry point
├── main.unit.spec.ts
├── package.json ├── package.json
├── README.md # This file ├── README.md # This file
├── tsconfig.json ├── tsconfig.json
├── util/ # Test and local utility scripts
└── vite.config.ts └── vite.config.ts
``` ```