feat(cli): add --vault option for daemon and mirror commands

Allow specifying a separate vault directory for .md files, decoupled from
the database directory (where PouchDB data lives).

- Add --vault/-V flag to CLI options parser
- Use vaultPath (or fallback to databasePath) for file system operations
- Works with both daemon and mirror commands
- Log vault path alongside database path at startup
This commit is contained in:
郑泽宇
2026-05-28 16:44:34 +08:00
parent 8d3825abc9
commit fff6df535f
2 changed files with 23 additions and 7 deletions
+1
View File
@@ -30,6 +30,7 @@ export type CLICommand =
export interface CLIOptions {
databasePath?: string;
vaultPath?: string;
settingsPath?: string;
verbose?: boolean;
debug?: boolean;