#action #command-line #prompt #positive #response

app confirm

Small utility program to confirm an action

1 unstable release

Uses old Rust 2015

0.1.0 Feb 15, 2016

#15 in #positive

3KB
50 lines

confirm

A very simple command line program to confirm a chained action. It simply prompts the user and it exits cleanly for a positive response.

Usage

bash

confirm && dangerous_command
# OR
confirm "Dangerous command ahead! Continue?" && dangerous_command

fish

confirm; and dangerous_command
# OR
confirm "Dangerous command ahead! Continue?"; and dangerous_command

No runtime deps