class ITermCLI::CLI
Public Instance Methods
list_sessions()
click to toggle source
# File lib/iterm_cli/cli.rb, line 34 def list_sessions puts Terminal::ListSessions.call.join("\n") end
new_session(*command)
click to toggle source
# File lib/iterm_cli/cli.rb, line 41 def new_session(*command) Terminal::NewSession.call(command, name: options.name, debug: options.debug) end
send_keys(*keys)
click to toggle source
# File lib/iterm_cli/cli.rb, line 47 def send_keys(*keys) Terminal::SendKeys.call(keys, target: options.target) end