Crate proceed

Source
Expand description

Proceed is a set of utility functions for handling command line input in a consistent and pleasing (to me) way… That’s it; short-and-sweet, no bells and whistles added.

Constants§

NO
Ergonomic boolean flag for “false”.
YES
Ergonomic boolean flag for “true”.

Traits§

Proceed
The abstraction around checking whether to proceed or not.

Functions§

any_or_quit_with
Press any key to continue, or ‘q’ to quit. This only really functions if you have the [term] feature enabled.
proceed
Would you like to continue (y/N)?
proceed_or
Override the default proceed value of “false”.
proceed_or_else
Proceed or else run the given function.