Enkaidu::ShellCommandFunction::Runner
Inherits LLM::Function::Runner < Reference < Object
The Runner class executes the function
Constructors
new(func : Enkaidu::ShellCommandFunction)
SourceInstance methods
check_safety(command)
Sourceameba:disable Metrics/CyclomaticComplexity: Clear without splitting up
requires_confirmation?(command)
SourceReturns all restricted terms (array of strings) found in the command
run_command(cmd)
Sourcerun_cordoned_command(cmd)
Sourceuser_confirms?(command, found_restricted)
Source