commandbox.system.modules_app.system-commands.commands

Class confirm

lucee.Component
    extended by commandbox.system.modules_app.system-commands.commands.confirm

Prompt the user for a yes/no. Requires an interactive terminal. An exit code of 0 is returned for a true response, and an exit code of 1 is retured for a false response. . Output a single file {code:bash} confirm "do you want to update? " && update {code}

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Method Summary
    any run(string question)
     
    Methods inherited from class lucee.Component
    None

    Method Detail

    run

    public any run(string question)

    Parameters:
    question - Question to ask the user