mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
25 lines
402 B
Ruby
25 lines
402 B
Ruby
# typed: true
|
|
# frozen_string_literal: true
|
|
|
|
require "cli/parser"
|
|
|
|
module Homebrew
|
|
extend T::Sig
|
|
|
|
module_function
|
|
|
|
sig { returns(CLI::Parser) }
|
|
def docs_args
|
|
Homebrew::CLI::Parser.new do
|
|
description <<~EOS
|
|
Open Homebrew's online documentation (#{HOMEBREW_DOCS_WWW}) in a browser.
|
|
EOS
|
|
end
|
|
end
|
|
|
|
sig { void }
|
|
def docs
|
|
exec_browser HOMEBREW_DOCS_WWW
|
|
end
|
|
end
|