Skip to content

Commit 83b0f09

Browse files
quad341mayorclaude
authored
fix: remove close --quiet bypass in bd init --force safety guard
--force --quiet previously printed a warning but continued anyway, silently destroying the database. Now it refuses like the default non-interactive path and requires --destroy-token to proceed. Co-authored-by: mayor <jim@wordelman.name> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ee81180 commit 83b0f09

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

cmd/bd/init.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,6 @@ environment variable.`,
143143
expectedToken := fmt.Sprintf("DESTROY-%s", prefix)
144144
if destroyToken == expectedToken {
145145
fmt.Fprintf(os.Stderr, "Destroy token accepted. Proceeding with re-initialization.\n")
146-
} else if quiet {
147-
// Legacy --quiet behavior (deprecated path)
148-
fmt.Fprintf(os.Stderr, "Warning: --force --quiet bypasses safety checks. Use --destroy-token=%s instead.\n", expectedToken)
149146
} else {
150147
fmt.Fprintf(os.Stderr, "Refusing to destroy %d issues in non-interactive mode.\n", count)
151148
fmt.Fprintf(os.Stderr, "To proceed, use: bd init --force --destroy-token=%s\n", expectedToken)

0 commit comments

Comments
 (0)