Skip to content
GitLab
菜单
项目
群组
代码片段
/
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录/注册
切换导航
菜单
打开侧边栏
KMSCAKKSCFKA AKFACAMADCAS
brew
提交
c6719e58
提交
c6719e58
编辑于
11月 23, 2021
作者:
XuehaiPan
浏览文件
dev-cmd/cat: require "formula" only when necessary
上级
687dbe52
变更
1
Hide whitespace changes
Inline
Side-by-side
Library/Homebrew/dev-cmd/cat.rb
浏览文件 @
c6719e58
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录