Skip to main content

CLI utility to confirm yes/no.

Project description

cli-confirm

Test PyPI version

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

MIT

Project details


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)

Uploaded Source

Built Distribution

cli_confirm-1.0.0-py2.py3-none-any.whl (3.6 kB view details)

Uploaded Python 2 Python 3

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

Hashes for cli-confirm-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b5df1ad1646b6ab1ae422068ccb22157746d44b4c27c47d35eaa788d3b860f79
MD5 cff950cb4216251da8d149bcb80bdceb
BLAKE2b-256 1a56e8ebf651934e02b234f84c563f568ce27d4b918c64649d577ca5d4c62ec4

See more details on using hashes here.

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

Hashes for cli_confirm-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8ba34a4b9e14a919b6cec296da28294ea985a483ed60f1250fd9b014d008d352
MD5 b022c5f500638a8576f3b59305036be4
BLAKE2b-256 c8a4f9adaa9120782bb94ebb78f51a37e237a807802cb5cde5a9def803316640

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page