ChooseSettings
public class ChooseSettings<T>
Settings to costumize the behavior of choose
-
Prompt message to use
Declaration
Swift
public var promptQuestion = ""
-
Choice index used for choose items
Declaration
Swift
public var index = ChoiceIndexType.Numbers
-
Index suffix used between the index and the item
Declaration
Swift
public var indexSuffix = ". "
-
Add a new item to the list of choices
Declaration
Swift
public func addChoice(choice: String..., callback: Void -> T)
Parameters
choice
Item name
callback
callback called when the item is selected, the value returned from this call back will be returned from choose