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