Class: Heyterminal::Cli::Commands::Edit

Inherits:
Heyterminal::CliCommand show all
Defined in:
lib/heyterminal/cli.rb

Instance Method Summary collapse

Methods inherited from Heyterminal::CliCommand

#safe_call

Instance Method Details

#call(**options) ⇒ Object



53
54
55
56
57
58
59
60
61
# File 'lib/heyterminal/cli.rb', line 53

def call(**options)
  safe_call do
   Heyterminal::Runner.load_default(options.fetch(:config, nil))

   line = Terrapin::CommandLine.new("#{Heyterminal::Runner.editor} #{Heyterminal::Runner.file_path}")

   line.run
  end
end