Class: Ace::Tmux::CLI::Commands::Capture
- Inherits:
-
Support::Cli::Command
- Object
- Support::Cli::Command
- Ace::Tmux::CLI::Commands::Capture
- 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(**) output = Organisms::ControlSurface.new.capture_recent_output(**.slice(:session, :window, :pane, :lines)) puts output rescue Ace::Tmux::Error => e raise Ace::Support::Cli::Error, e. end |