Merge pull request #6327 from MikeMcQuaid/homebrew_display_install_times
Add HOMEBREW_DISPLAY_INSTALL_TIMES
This commit is contained in:
commit
85dd99fa62
@ -78,6 +78,7 @@ module Homebrew
|
|||||||
switch :verbose,
|
switch :verbose,
|
||||||
description: "Print the verification and postinstall steps."
|
description: "Print the verification and postinstall steps."
|
||||||
switch "--display-times",
|
switch "--display-times",
|
||||||
|
env: :display_install_times,
|
||||||
description: "Print install times for each formula at the end of the run."
|
description: "Print install times for each formula at the end of the run."
|
||||||
switch "-i", "--interactive",
|
switch "-i", "--interactive",
|
||||||
description: "Download and patch <formula>, then open a shell. This allows the user to "\
|
description: "Download and patch <formula>, then open a shell. This allows the user to "\
|
||||||
|
|||||||
@ -35,6 +35,7 @@ module Homebrew
|
|||||||
switch :verbose,
|
switch :verbose,
|
||||||
description: "Print the verification and postinstall steps."
|
description: "Print the verification and postinstall steps."
|
||||||
switch "--display-times",
|
switch "--display-times",
|
||||||
|
env: :display_install_times,
|
||||||
description: "Print install times for each formula at the end of the run."
|
description: "Print install times for each formula at the end of the run."
|
||||||
conflicts "--build-from-source", "--force-bottle"
|
conflicts "--build-from-source", "--force-bottle"
|
||||||
formula_options
|
formula_options
|
||||||
|
|||||||
@ -45,6 +45,7 @@ module Homebrew
|
|||||||
switch :verbose,
|
switch :verbose,
|
||||||
description: "Print the verification and postinstall steps."
|
description: "Print the verification and postinstall steps."
|
||||||
switch "--display-times",
|
switch "--display-times",
|
||||||
|
env: :display_install_times,
|
||||||
description: "Print install times for each formula at the end of the run."
|
description: "Print install times for each formula at the end of the run."
|
||||||
conflicts "--build-from-source", "--force-bottle"
|
conflicts "--build-from-source", "--force-bottle"
|
||||||
formula_options
|
formula_options
|
||||||
|
|||||||
@ -174,6 +174,9 @@ Note that environment variables must have a value set to be detected. For exampl
|
|||||||
|
|
||||||
*Default:* the value of the user's `DISPLAY` environment variable.
|
*Default:* the value of the user's `DISPLAY` environment variable.
|
||||||
|
|
||||||
|
* `HOMEBREW_DISPLAY_INSTALL_TIMES`:
|
||||||
|
If set, Homebrew will print install times for each formula at the end of the run.
|
||||||
|
|
||||||
* `HOMEBREW_EDITOR`:
|
* `HOMEBREW_EDITOR`:
|
||||||
If set, Homebrew will use this editor when editing a single formula, or
|
If set, Homebrew will use this editor when editing a single formula, or
|
||||||
several formulae in the same directory.
|
several formulae in the same directory.
|
||||||
|
|||||||
@ -22,7 +22,7 @@ class Messages
|
|||||||
|
|
||||||
def display_messages
|
def display_messages
|
||||||
display_caveats
|
display_caveats
|
||||||
display_install_times if ARGV.include?("--display-times")
|
display_install_times if Homebrew.args.display_times?
|
||||||
end
|
end
|
||||||
|
|
||||||
def display_caveats
|
def display_caveats
|
||||||
|
|||||||
@ -74,7 +74,7 @@ describe Messages do
|
|||||||
|
|
||||||
context "when the --display-times argument is present" do
|
context "when the --display-times argument is present" do
|
||||||
before do
|
before do
|
||||||
allow(ARGV).to receive(:include?).with("--display-times").and_return(true)
|
allow(Homebrew.args).to receive(:display_times?).and_return(true)
|
||||||
end
|
end
|
||||||
|
|
||||||
context "when install_times is empty" do
|
context "when install_times is empty" do
|
||||||
|
|||||||
@ -1061,6 +1061,9 @@ Note that environment variables must have a value set to be detected. For exampl
|
|||||||
|
|
||||||
*Default:* the value of the user's `DISPLAY` environment variable.
|
*Default:* the value of the user's `DISPLAY` environment variable.
|
||||||
|
|
||||||
|
* `HOMEBREW_DISPLAY_INSTALL_TIMES`:
|
||||||
|
If set, Homebrew will print install times for each formula at the end of the run.
|
||||||
|
|
||||||
* `HOMEBREW_EDITOR`:
|
* `HOMEBREW_EDITOR`:
|
||||||
If set, Homebrew will use this editor when editing a single formula, or
|
If set, Homebrew will use this editor when editing a single formula, or
|
||||||
several formulae in the same directory.
|
several formulae in the same directory.
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
.\" generated with Ronn/v0.7.3
|
.\" generated with Ronn/v0.7.3
|
||||||
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
||||||
.
|
.
|
||||||
.TH "BREW\-CASK" "1" "May 2019" "Homebrew" "brew-cask"
|
.TH "BREW\-CASK" "1" "July 2019" "Homebrew" "brew-cask"
|
||||||
.
|
.
|
||||||
.SH "NAME"
|
.SH "NAME"
|
||||||
\fBbrew\-cask\fR \- a friendly binary installer for macOS
|
\fBbrew\-cask\fR \- a friendly binary installer for macOS
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
.\" generated with Ronn/v0.7.3
|
.\" generated with Ronn/v0.7.3
|
||||||
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
||||||
.
|
.
|
||||||
.TH "BREW" "1" "May 2019" "Homebrew" "brew"
|
.TH "BREW" "1" "July 2019" "Homebrew" "brew"
|
||||||
.
|
.
|
||||||
.SH "NAME"
|
.SH "NAME"
|
||||||
\fBbrew\fR \- The missing package manager for macOS
|
\fBbrew\fR \- The missing package manager for macOS
|
||||||
@ -1297,6 +1297,10 @@ If set, Homebrew will use this X11 display when opening a page in a browser, for
|
|||||||
\fIDefault:\fR the value of the user\'s \fBDISPLAY\fR environment variable\.
|
\fIDefault:\fR the value of the user\'s \fBDISPLAY\fR environment variable\.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
|
\fBHOMEBREW_DISPLAY_INSTALL_TIMES\fR
|
||||||
|
If set, Homebrew will print install times for each formula at the end of the run\.
|
||||||
|
.
|
||||||
|
.TP
|
||||||
\fBHOMEBREW_EDITOR\fR
|
\fBHOMEBREW_EDITOR\fR
|
||||||
If set, Homebrew will use this editor when editing a single formula, or several formulae in the same directory\.
|
If set, Homebrew will use this editor when editing a single formula, or several formulae in the same directory\.
|
||||||
.
|
.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user