class

Enkaidu::ConditionalCommandHelper

Inherits Tools::FileHelper < Reference < Object

Constants

HELP = "#{HELP_BRIEF}\n- `if file_exists=<PATH>`\n - Exit macro if given file exists\n- `if file=<PATH> contains=<STR>`\n - Exit macro if given file exists and contains given string\n- `if global ns=<NAMESPACE> key=<STR> equals=<STR>`\n - Exit macro if global state key has matching value\n- `unless file_exists=<PATH>`\n - Exit macro unless given file exists\n- `unless file=<PATH> contains=<STR>`\n - Exit macro unless given file exists and contains given string\n- `unless global ns=<NAMESPACE> key=<STR> equals=<STR>`\n - Exit macro unless global state key has matching value"
HELP_BRIEF = "`#{NAME} <sub-command> ...` - Conditionally exit from current macro"
NAME = "?break"

Instance methods

brief

One line help, in Markdown

Source
handle_conditional_command(session_manager : SessionManager, q : String) : Continuation

Return true to continue with next query, or false to abort current query queue

Source
help

Detailed help, in Markdown

Source
name
Source

Nested types