Remove need for HOMEBREW_NO_DEV_CMD_MESSAGE

This commit is contained in:
Rylan Polster 2021-07-20 11:47:31 -04:00
parent 564a207bad
commit 27ba803bb5
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64
6 changed files with 3 additions and 15 deletions

View File

@ -93,7 +93,7 @@ begin
internal_cmd ||= begin internal_cmd ||= begin
internal_dev_cmd = Commands.valid_internal_dev_cmd?(cmd) internal_dev_cmd = Commands.valid_internal_dev_cmd?(cmd)
if internal_dev_cmd && !Homebrew::EnvConfig.developer? if internal_dev_cmd && !Homebrew::EnvConfig.developer?
if ENV["HOMEBREW_DEV_CMD_RUN"].blank? && !Homebrew::EnvConfig.no_dev_cmd_message? if ENV["HOMEBREW_DEV_CMD_RUN"].blank?
opoo <<~MESSAGE opoo <<~MESSAGE
#{Tty.bold}#{cmd}#{Tty.reset} is a developer command, so #{Tty.bold}#{cmd}#{Tty.reset} is a developer command, so
Homebrew's developer mode has been automatically turned on. Homebrew's developer mode has been automatically turned on.

View File

@ -645,7 +645,7 @@ elif [[ -f "${HOMEBREW_LIBRARY}/Homebrew/dev-cmd/${HOMEBREW_COMMAND}.sh" ]]
then then
if [[ -z "${HOMEBREW_DEVELOPER}" ]] if [[ -z "${HOMEBREW_DEVELOPER}" ]]
then then
if [[ -z "${HOMEBREW_DEV_CMD_RUN}" ]] && [[ -z "${HOMEBREW_NO_DEV_CMD_MESSAGE}" ]] if [[ -z "${HOMEBREW_DEV_CMD_RUN}" ]]
then then
message="$(bold "${HOMEBREW_COMMAND}") is a developer command, so message="$(bold "${HOMEBREW_COMMAND}") is a developer command, so
Homebrew's developer mode has been automatically turned on. Homebrew's developer mode has been automatically turned on.

View File

@ -235,10 +235,6 @@ module Homebrew
description: "If set, disable all use of legacy compatibility code.", description: "If set, disable all use of legacy compatibility code.",
boolean: true, boolean: true,
}, },
HOMEBREW_NO_DEV_CMD_MESSAGE: {
description: "If set, do not display a warning message when running a developer command for the first time.",
boolean: true,
},
HOMEBREW_NO_EMOJI: { HOMEBREW_NO_EMOJI: {
description: "If set, do not print `HOMEBREW_INSTALL_BADGE` on a successful build." \ description: "If set, do not print `HOMEBREW_INSTALL_BADGE` on a successful build." \
"\n\n *Note:* Will only try to print emoji on OS X Lion or newer.", "\n\n *Note:* Will only try to print emoji on OS X Lion or newer.",

View File

@ -83,6 +83,7 @@ RSpec.shared_context "integration test" do # rubocop:disable RSpec/ContextWordin
"HOMEBREW_INTEGRATION_TEST" => command_id_from_args(args), "HOMEBREW_INTEGRATION_TEST" => command_id_from_args(args),
"HOMEBREW_TEST_TMPDIR" => TEST_TMPDIR, "HOMEBREW_TEST_TMPDIR" => TEST_TMPDIR,
"HOMEBREW_DEVELOPER" => ENV["HOMEBREW_DEVELOPER"], "HOMEBREW_DEVELOPER" => ENV["HOMEBREW_DEVELOPER"],
"HOMEBREW_DEV_CMD_RUN" => "true",
"GEM_HOME" => nil, "GEM_HOME" => nil,
) )

View File

@ -2027,9 +2027,6 @@ example, run `export HOMEBREW_NO_INSECURE_REDIRECT=1` rather than just
- `HOMEBREW_NO_COMPAT` - `HOMEBREW_NO_COMPAT`
<br>If set, disable all use of legacy compatibility code. <br>If set, disable all use of legacy compatibility code.
- `HOMEBREW_NO_DEV_CMD_MESSAGE`
<br>If set, do not display a warning message when running a developer command for the first time.
- `HOMEBREW_NO_EMOJI` - `HOMEBREW_NO_EMOJI`
<br>If set, do not print `HOMEBREW_INSTALL_BADGE` on a successful build. <br>If set, do not print `HOMEBREW_INSTALL_BADGE` on a successful build.

View File

@ -2923,12 +2923,6 @@ If set, do not print text with colour added\.
If set, disable all use of legacy compatibility code\. If set, disable all use of legacy compatibility code\.
. .
.TP .TP
\fBHOMEBREW_NO_DEV_CMD_MESSAGE\fR
.
.br
If set, do not display a warning message when running a developer command for the first time\.
.
.TP
\fBHOMEBREW_NO_EMOJI\fR \fBHOMEBREW_NO_EMOJI\fR
. .
.br .br