Class: Chid::Commands::Tmux::Open

Inherits:
Chid::Command show all
Defined in:
lib/chid/commands/tmux/open.rb

Constant Summary

Constants inherited from Chid::Command

Chid::Command::COMMANDS

Instance Attribute Summary

Attributes inherited from Chid::Command

#options

Instance Method Summary collapse

Methods inherited from Chid::Command

command, help, #initialize, map_options_with_values, run

Constructor Details

This class inherits a constructor from Chid::Command

Instance Method Details

#runObject



34
35
36
37
38
39
# File 'lib/chid/commands/tmux/open.rb', line 34

def run
  template_name = template_name_from_options
  template_name = select_template if template_name.empty?

  open_template(template_name)
end