Please note

This documentation is for the stable (0.9) version of Fabric. To view documentation for the in-development (1.0) version, please click here.

Console Output Utilities

Console/terminal user interface functionality.

fabric.contrib.console.confirm(question, default=True)

Ask user a yes/no question and return their response as True or False.

question should be a simple, grammatically complete question such as “Do you wish to continue?”, and will have a string similar to ” [Y/n] ” appended automatically. This function will not append a question mark for you.

By default, when the user presses Enter without typing anything, “yes” is assumed. This can be changed by specifying default=False.

Project Versions

Previous topic

Utils

Next topic

File and Directory Management

This Page