Migrate to AbstractCommand

This commit is contained in:
Tommaso Negri
2024-10-03 10:16:08 +02:00
parent 379092b344
commit d8521a0fc7
+6 -8
View File
@@ -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