mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-17 14:26:45 -06:00
the create command opens up an editor with template to get started remove --create override flag from `brew cask edit` hopefully this will be more straightforward for contributors refs #306
14 lines
375 B
Ruby
14 lines
375 B
Ruby
module Cask::CLI::Edit
|
|
def self.run(*arguments)
|
|
cask_name, *args = *arguments
|
|
cask_path = Cask.path(cask_name)
|
|
unless cask_path.exist?
|
|
raise CaskUnavailableError, "#{cask_name}, use `brew cask create #{cask_name}` to make a new cask with this name"
|
|
end
|
|
exec_editor cask_path
|
|
end
|
|
|
|
def self.help
|
|
"edits the cask of the given name"
|
|
end
|
|
end
|