Confirm Before Execute¶
By default, commands fire immediately when you press Enter -- that's the whole point of TuiBookie. But some commands are dangerous, and you may want a safety net before running them.
How It Works¶
Individual bookmarks can be marked to require confirmation:
- When you add or edit a bookmark, set "Confirm before execute?" to Yes
- Bookmarks with confirmation enabled show a bold pink ! indicator in the list
- Pressing Enter will display the resolved command in a confirmation dialog
- You must confirm with
ybefore it runs
Bookmarks with confirmation enabled are easy to spot -- notice the ! next to "Remove stuff":
TuiBookie
v1.6.0
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
LOCAL COMMANDS
List stuff ls -ahl
> Remove stuff ! rm -rf important_stuff
[a]dd [e]dit [d]elete
[enter]run [←/esc] back
[q]uit
When you select a confirmed bookmark, you'll see the command and must choose Yes or No before it runs:
TuiBookie
v1.6.0
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Execute: rm -rf important_stuff?
> Yes
No
[enter] select [y] yes [n] no [←/esc] back [q] quit
Use Cases¶
This is useful for commands like:
rm -rf-- Destructive file operationskubectl delete-- Kubernetes resource deletion- Any command you don't want to fire accidentally