A CLI utility to confirm yes/no.
pip install cli-confirm
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.
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"