Proceed
Current Release: v0.1.0
A simple set of common utility functions for checking with the user of your command line application.
proceed(bool)
- Y/N with default.any_or_quit_with(char)
- Any key unless char for quit.
These are wrappers around a flexible user-input checker, so you can customize as needed.
Out-of-Scope:
no_std
- We need std I/O.- Translations or handling string output in general. Use any of the i18n packages.
Examples:
Just check yes or no, with a default of either YES
or NO
.
use ;
Continue on any user input (but 'q' for quit).
Needs term
feature enabled, otherwise user will need to press "Enter" afterwards.
use any_or_quit;