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
Metadata
Release files for cli-confirm 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cli-confirm-1.0.0.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cli_confirm-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 6.6 kB
Release files / cli-confirm-1.0.0.tar.gz
| Download URL | cli-confirm-1.0.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5df1ad1646b6ab1ae422068ccb22157746d44b4c27c47d35eaa788d3b860f79
|
|
BLAKE2b-256 checksum How to use checksums |
1a56e8ebf651934e02b234f84c563f568ce27d4b918c64649d577ca5d4c62ec4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.1 Linux/5.4.72-microsoft-standard-WSL2
|
Release files / cli_confirm-1.0.0-py2.py3-none-any.whl
| Download URL | cli_confirm-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8ba34a4b9e14a919b6cec296da28294ea985a483ed60f1250fd9b014d008d352
|
|
BLAKE2b-256 checksum How to use checksums |
c8a4f9adaa9120782bb94ebb78f51a37e237a807802cb5cde5a9def803316640
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.1 Linux/5.4.72-microsoft-standard-WSL2
|