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.0rc1.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for cli_confirm-1.0.0rc1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29ac12159a1dbe8948de967c7e0e3ac2d895fddbdbfa9e62c1f8d054f03a1e30 |
|
MD5 | e36c1538c0a89e852ee40dd47a3e7050 |
|
BLAKE2b-256 | 4b3833c643707e96f1d30eb59564739a96b3109b8d14333f1ef131a8f52b5281 |