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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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