commandbox.system.modules_app.system-commands.commands

Class ask

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

Prompt the user for an answer and return it. Requires an interactive terminal. . Output a single file {code:bash} set color=`ask "favorite Color? "` echo "you said ${color}" {code}

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Method Summary
    any run(string question, [string defaultResponse=''], [string mask=''])
     
    Methods inherited from class lucee.Component
    None

    Method Detail

    run

    public any run(string question, [string defaultResponse=''], [string mask=''])

    Parameters:
    question - Question to ask the user
    defaultResponse - Default what shows in the buffer
    mask - Set to a char like * to hide passwords, etc