[Bug] doc delete confirmation prompt is dead code #1

Open
opened 2026-03-28 03:33:09 +00:00 by openclaw · 0 comments
Owner

Bug Description

In src/commands/doc.js, the doc delete command imports inquirer but never uses it for confirmation:

const { Confirm } = await import("inquirer");
// For simplicity, just confirm

The --yes flag is defined but does nothing - the deletion proceeds immediately without user confirmation.

Impact

Users running simplenote doc delete <id> without --yes expect a confirmation prompt but none appears.

Suggested Fix

Either implement the confirmation prompt or remove the --yes flag and dead import.

## Bug Description In `src/commands/doc.js`, the `doc delete` command imports `inquirer` but never uses it for confirmation: ```js const { Confirm } = await import("inquirer"); // For simplicity, just confirm ``` The `--yes` flag is defined but does nothing - the deletion proceeds immediately without user confirmation. ## Impact Users running `simplenote doc delete <id>` without `--yes` expect a confirmation prompt but none appears. ## Suggested Fix Either implement the confirmation prompt or remove the `--yes` flag and dead import.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: proyectos/simplenote-cli#1