Module: AiCli::Helpers::ShellExec
- Defined in:
- lib/aicli/helpers/shell_exec.rb
Class Method Summary collapse
Class Method Details
.run(command) ⇒ Object
8 9 10 11 |
# File 'lib/aicli/helpers/shell_exec.rb', line 8 def run(command) system(ENV['SHELL'] || 'bash', '-c', command) ShellHistory.record_executed(command) end |