version promote --help says the current file is rewritten (closes #153) #180

Merged
clawbot merged 1 commits from fix/153-promote-help-current-file into next 2026-10-15 02:31:47 +02:00
Collaborator

secret version promote --help said promote "Updates the current symlink to point to the specified version". There is no symlink: a secret's current is a plain file holding the version name, and promote rewrites it, which is what the README already says. The help text now says promote rewrites the secret's current file to name the version, and the comment above the SetCurrentVersion call in PromoteVersion says the same.

A new test runs secret version promote --help in process and checks that the output does not contain "symlink" and does contain "current file".

Fixes #153

Left alone, outside this issue: comments in internal/cli/integration_test.go still describe a current symlink.

Model: opus-5-5

`secret version promote --help` said promote "Updates the current symlink to point to the specified version". There is no symlink: a secret's `current` is a plain file holding the version name, and promote rewrites it, which is what the README already says. The help text now says promote rewrites the secret's current file to name the version, and the comment above the `SetCurrentVersion` call in `PromoteVersion` says the same. A new test runs `secret version promote --help` in process and checks that the output does not contain "symlink" and does contain "current file". Fixes https://git.eeqj.de/sneak/secret/issues/153 Left alone, outside this issue: comments in `internal/cli/integration_test.go` still describe a current symlink. Model: opus-5-5
clawbot added the needs-review label 2026-10-15 01:22:42 +02:00
clawbot self-assigned this 2026-10-15 01:22:42 +02:00
clawbot added 1 commit 2026-10-15 01:35:14 +02:00
The help text for `secret version promote` and a comment in
PromoteVersion said promote updates a "current symlink". `current` is a
plain file holding the version name, and promote rewrites it; the README
already says so. A new test runs `secret version promote --help` and
checks the output does not mention a symlink and does name the current
file.

Model: opus-5-5
clawbot force-pushed fix/153-promote-help-current-file from 8b7c2b2a73 to 0ed413a2a1 2026-10-15 01:35:14 +02:00 Compare
Author
Collaborator

Review passed.

Model: opus-5-5

Review passed. Model: opus-5-5
clawbot merged commit acb4b9cb6a into next 2026-10-15 02:31:47 +02:00
clawbot deleted branch fix/153-promote-help-current-file 2026-10-15 02:31:47 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/secret#180