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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cli-confirm-1.0.0.tar.gz.
File metadata
- Download URL: cli-confirm-1.0.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.72-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5df1ad1646b6ab1ae422068ccb22157746d44b4c27c47d35eaa788d3b860f79
|
|
| MD5 |
cff950cb4216251da8d149bcb80bdceb
|
|
| BLAKE2b-256 |
1a56e8ebf651934e02b234f84c563f568ce27d4b918c64649d577ca5d4c62ec4
|
File details
Details for the file cli_confirm-1.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: cli_confirm-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.72-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ba34a4b9e14a919b6cec296da28294ea985a483ed60f1250fd9b014d008d352
|
|
| MD5 |
b022c5f500638a8576f3b59305036be4
|
|
| BLAKE2b-256 |
c8a4f9adaa9120782bb94ebb78f51a37e237a807802cb5cde5a9def803316640
|