提交 c6719e58 编辑于 作者: XuehaiPan's avatar XuehaiPan
浏览文件

dev-cmd/cat: require "formula" only when necessary

上级 687dbe52
......@@ -2,7 +2,6 @@
# frozen_string_literal: true
require "cli/parser"
require "formula"
module Homebrew
extend T::Sig
......@@ -32,6 +31,8 @@ module Homebrew
cd HOMEBREW_REPOSITORY
pager = if Homebrew::EnvConfig.bat?
require "formula"
unless Formula["bat"].any_version_installed?
# The user might want to capture the output of `brew cat ...`
# Redirect stdout to stderr
......
支持 Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册