Migrate to AbstractCommand
This commit is contained in:
@@ -4,10 +4,9 @@ require "formula"
|
|||||||
require "json"
|
require "json"
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
module_function
|
module Cmd
|
||||||
|
class BrewerTapContentInfo < AbstractCommand
|
||||||
def brewer_tap_content_info_args
|
cmd_args do
|
||||||
Homebrew::CLI::Parser.new do
|
|
||||||
description <<~EOS
|
description <<~EOS
|
||||||
Do something. Place a description here.
|
Do something. Place a description here.
|
||||||
EOS
|
EOS
|
||||||
@@ -23,11 +22,8 @@ module Homebrew
|
|||||||
|
|
||||||
named_args [:tap]
|
named_args [:tap]
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def brewer_tap_content_info
|
|
||||||
args = brewer_tap_content_info_args.parse
|
|
||||||
|
|
||||||
|
def run
|
||||||
formulae = []
|
formulae = []
|
||||||
casks = []
|
casks = []
|
||||||
|
|
||||||
@@ -54,4 +50,6 @@ module Homebrew
|
|||||||
|
|
||||||
puts JSON.pretty_generate(json)
|
puts JSON.pretty_generate(json)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user