CLI utility to confirm yes/no.
Project description
cli-confirm
A CLI utility to confirm yes/no.
Installation
pip install cli-confirm
Example
confirm 'Are you sure?'
which shows a prompt to ask yes/no:
Are you sure? [y/N]:
If the user answers "yes", then it returns a zero exit status. It returns a non-zero exit status otherwise.
Motivation
This utility can be used in a combination with taskipy as follows:
[tool.taskipy.tasks]
deploy = "confirm 'Are you sure to deploy?' && mkdocs gh-deploy"
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cli-confirm-1.0.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for cli_confirm-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ba34a4b9e14a919b6cec296da28294ea985a483ed60f1250fd9b014d008d352 |
|
MD5 | b022c5f500638a8576f3b59305036be4 |
|
BLAKE2b-256 | c8a4f9adaa9120782bb94ebb78f51a37e237a807802cb5cde5a9def803316640 |