You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
306 B
12 lines
306 B
class Cask::CLI::Edit
|
|
def self.run(*arguments)
|
|
cask_name, *rest = *arguments
|
|
cask_path = Cask.path(cask_name)
|
|
raise CaskUnavailableError, cask_name + ".rb" if cask_path.nil? || !cask_path.file?
|
|
exec_editor cask_path
|
|
end
|
|
|
|
def self.help
|
|
"edits the cask of the given name"
|
|
end
|
|
end
|
|
|