Class: Heyterminal::Cli::Commands::Edit
- Inherits:
-
Heyterminal::CliCommand
- Object
- Dry::CLI::Command
- Heyterminal::CliCommand
- Heyterminal::Cli::Commands::Edit
- Defined in:
- lib/heyterminal/cli.rb
Instance Method Summary collapse
Methods inherited from Heyterminal::CliCommand
Instance Method Details
#call(**options) ⇒ Object
53 54 55 56 57 58 59 60 61 |
# File 'lib/heyterminal/cli.rb', line 53 def call(**) safe_call do Heyterminal::Runner.load_default(.fetch(:config, nil)) line = Terrapin::CommandLine.new("#{Heyterminal::Runner.editor} #{Heyterminal::Runner.file_path}") line.run end end |