Add directory_select to IDisplay interface

This commit is contained in:
Brad Warren 2016-03-23 15:32:53 -07:00
parent 294ea4d1a6
commit 3031968ac5

View file

@ -443,6 +443,20 @@ class IDisplay(zope.interface.Interface):
"""
def directory_select(self, message, default=None, cli_flag=None):
"""Display a directory selection screen.
:param str message: prompt to give the user
:param default: the default value to return, if one exists, when
using the NoninteractiveDisplay
:param str cli_flag: option used to set this value with the CLI
:returns: tuple of the form (`code`, `string`) where
`code` - int display exit code
`string` - input entered by the user
"""
class IValidator(zope.interface.Interface):
"""Configuration validator."""