Skip to content

feat: finish potok vault-add command - #51

Merged
mtiluk merged 2 commits into
mainfrom
feat/vault-add
Sep 9, 2026
Merged

mtiluk merged 2 commits into
mainfrom
feat/vault-add

Conversation

@mtiluk

@mtiluk mtiluk commented Sep 9, 2026

Copy link
Copy Markdown
Owner

No description provided.

Implements the pseudocode left in vault-add's RunE: resolves and
validates the vault path (absolute, readable directory, warns but
doesn't fail if it's missing a .obsidian folder), rejects a name
that's already registered before prompting for anything else, then
prompts twice for a hidden passphrase via golang.org/x/term and
rejects an empty or mismatched entry. Stores the passphrase in the
keyring and registers the vault in config, rolling back the keyring
entry if either the in-memory add or the config save fails.

Pins golang.org/x/term to v0.45.0 (the newest version that still only
requires go 1.25, matching this module's go directive) rather than
picking up an unrelated toolchain bump from @latest.

Closes #47.
@mtiluk
mtiluk merged commit 18c6062 into main Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant