Class: Ace::Tmux::CLI::Commands::Capture

Inherits:
Support::Cli::Command
  • Object
show all
Includes:
Support::Cli::Base
Defined in:
lib/ace/tmux/cli/commands/capture.rb

Instance Method Summary collapse

Instance Method Details

#call(**options) ⇒ Object



31
32
33
34
35
36
# File 'lib/ace/tmux/cli/commands/capture.rb', line 31

def call(**options)
  output = Organisms::ControlSurface.new.capture_recent_output(**options.slice(:session, :window, :pane, :lines))
  puts output
rescue Ace::Tmux::Error => e
  raise Ace::Support::Cli::Error, e.message
end