Markus Reiter
24ae318a3d
Move type annotations into files.
2020-10-10 14:59:39 +02:00
William Ma
fa7bd3bff6
args: Migrate usage of args loading methods to args.named
2020-08-23 09:02:20 -04:00
Markus Reiter
6c964d4a78
Pass verbose?
to Keg#link
, Keg#unlink
and Keg#optlink
.
2020-08-06 16:12:52 +02:00
Markus Reiter
d4c2ffd705
Refactor CLI::Parser
.
2020-07-31 15:07:17 +02:00
Markus Reiter
c0d42dd922
Remove --force
from global_options
.
2020-07-28 10:31:11 +02:00
Alessandro Di Felice
b752efbd37
Fix KeyOnlyReason property access.
2020-04-12 10:08:35 -05:00
Mike McQuaid
7f32e23a65
cmd/link: don't link shadowed macOS software.
2020-04-12 13:12:03 +01:00
Mike McQuaid
3381cbf5c7
Use Homebrew::EnvConfig.
2020-04-07 09:58:26 +01:00
Mike McQuaid
a7fe0ed847
cmd: use more and cleanup new args APIs.
2020-03-05 09:40:15 +00:00
EricFromCanada
2f7c3afeb8
cmd: improve wording of messages, spacing
2019-12-15 00:04:45 -05:00
Zach Auten
fd429d0d75
Moved kegs from ARGV to args.rb
2019-11-09 11:56:47 -05:00
EricFromCanada
8a8359cdd4
manpages: sentence rewording for readability
...
Use active voice when applicable, better verbs & adjectives, preposition usage, proper tense, etc.
2019-08-20 09:05:45 -04:00
EricFromCanada
ee314617f7
manpages: update command usage strings
2019-08-20 08:55:54 -04:00
Jonathan Chang
fe36f3db67
cmd/link: fix typo
2019-08-05 15:10:00 +10:00
Mike McQuaid
c4f72312ce
Fixup brew style
failures.
2019-04-30 09:19:18 +01:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files.
2019-04-20 13:27:36 +09:00
Mike McQuaid
e40b171127
Rename cli_parser to cli/parser.
2019-04-17 22:16:50 +09:00
Mike McQuaid
6cb7a00f2d
cmd: remove --help headers and tweak docs.
2019-01-30 21:39:28 +00:00
Mike McQuaid
2a346241c2
link: prevent :provided_by_macos links everywhere.
...
We've not seen complaints about these and they are the default behaviour
on High Sierra and Mojave so it's easier to apply them consistently
everywhere.
2018-12-06 13:59:28 +00:00
Gautham Goli
bf47a9a851
link: Use CLI::Parser to parse args
2018-11-05 12:20:10 +05:30
Shaun Jackman
f6093961ef
Add Homebrew::DEFAULT_PREFIX for Linux
...
The default prefix is /usr/local on macOS
and /home/linuxbrew/.linuxbrew on Linux.
2018-09-11 09:57:08 -07:00
Mike McQuaid
19d87bf15f
link: when refusing link display keg only caveats
...
These are a bit easier to follow and have been recently improved.
Inspired by conversation in #4441 .
2018-07-26 10:49:55 +01:00
Mike McQuaid
7cc970fea2
link: refactor, reorder and fix bugs.
...
The change in #4441 broke the handling of the `elsif`s due to the
change in logic. As every block here has a `next` there's no need to do
an `elsif` in here at all. Additionally, reorder the conditions in here
so you get an appropriate message depending on what you're trying to do.
Finally, tweak some of the messaging to remove things that are ignored
and tell people correct commands to run to link things.
2018-07-10 09:32:42 +01:00
ilovezfs
461b61abac
link: fix undefined dep_f
2018-07-09 21:23:25 -07:00
Mike McQuaid
2f181b3f41
link: stop unneeded force linking on Mojave/CLT 10.
...
People are getting in the habit of force-linking things like `zlib` to
fix linking/include issues on Mojave (which doesn't install headers to
`/usr/include` by default). This way lies madness so encourage people to
instead pass the correct compiler flags instead.
2018-07-09 16:09:00 +01:00
Andrew Janke
8b55cb5ecb
Refactor commands to remove "require cmd/help"
2018-06-07 04:59:59 -04:00
Markus Reiter
9bee9ca575
Use “squiggly” heredocs.
2017-10-18 14:39:09 +02:00
Mike McQuaid
7a38bab333
Fixup all RuboCop warnings.
2017-05-29 18:43:18 +01:00
Mike McQuaid
ba3c46d24f
More deprecations.
...
Deprecate more methods. Internal APIs have been verified to be unused
elsewhere and removed. External APIs have had deprecation methods added.
Existing deprecations have been either upgraded to produce warnings or
no longer deprecated and the reasoning documented.
2017-04-22 16:28:07 +01:00
Mike McQuaid
566d3cb58b
Document all short flags.
2017-04-02 10:14:58 +01:00
Eugene Nikolsky
edd9a9717c
Fix the 'export PATH' message in link
for a keg-only formula
...
Commit 4cae6a724e6d684eb157dd6d7328755694f228b2 introduced the message,
but it printed the wrong path, e.g. for `brew link sqlite`:
```
If you need to have this software first in your PATH instead consider running:
echo 'export PATH="/usr/local/opt/sqlite:$PATH"' >> ~/.zshrc/bin
```
where `/bin` is appended at the end, but should be inserted before
`:$PATH`: `echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.zshrc`.
This patch fixes that and updates a test to verify it.
2017-04-01 20:12:00 -07:00
Mike McQuaid
4cae6a724e
link: tell users of brew link --force
about opt.
...
If people are force-linking keg-only things they should probably be told
that they can add the opt prefix to their PATH instead.
2017-03-23 08:42:29 +00:00
Markus Reiter
c36f42ce95
Remove private_class_method
from commands.
2016-10-02 00:24:47 +02:00
Markus Reiter
0ab750bf24
Use module_function
for commands.
2016-10-02 00:24:47 +02:00
Mike McQuaid
3e5ccaf3d2
link: don't allow more openssl/libressl linkage.
...
This extends the approach in #597 to further prevent linkage of formulae
that conflict with the system OpenSSL and can cause the issues
described in that issue.
2016-07-31 19:12:20 +01:00
Mike McQuaid
b999edb344
link: don't link /usr/local openssl.
...
See https://langui.sh/2015/07/24/osx-clang-include-lib-search-paths/ for
an explanation and https://gist.github.com/tdsmith/4b502c5cc6e7d358acdf
for reproduction instructions.
2016-07-29 17:00:51 -06:00
Max Nordlund
fa1fd70a37
Add all the top level comments
2016-04-10 22:59:25 +02:00
Xu Cheng
ee332c4550
handle TapFormulaWithOldnameAmbiguityError
...
Closes Homebrew/homebrew#44705 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-08 16:02:33 +08:00
BrewTestBot
13d544e11e
Core files style updates.
...
Closes Homebrew/homebrew#42354 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 13:22:35 +01:00
Xu Cheng
fb8548cae5
link: load formula from rack
2015-05-27 13:53:41 +08:00
Jack Nagel
3d69e5ab7b
Rename Keg#fname to Keg#name
2014-06-24 19:09:09 -05:00
Jack Nagel
4d9d01893e
Move deprecated Formula class methods to compat
...
These have all been moved to Formulary.
2014-06-22 15:03:17 -05:00
Jack Nagel
10a1952d2c
Only "extend self" once on the Homebrew module
2014-06-19 13:10:36 -05:00
Jack Nagel
72d83adaf3
Adjust link command for updated error handling
2014-04-21 12:43:06 -05:00
Jack Nagel
1f0d424459
link: fix output ordering when exceptions are raised
2014-03-27 16:27:46 -05:00
Jack Nagel
3a48d7ab9b
link: print wrapper is not always required
2014-03-27 16:27:46 -05:00
Jack Nagel
714bfee8d9
Add missing newline to link and unlink in verbose mode
2014-03-26 21:53:34 -05:00
Adam Vandenberg
4c9ac19e87
Consolidate sudo checks.
...
Closes Homebrew/homebrew#20318 .
2013-06-08 20:44:56 -07:00
Jack Nagel
92b6bcb77d
link: extract keg-only check into a helper method
2013-05-20 21:55:01 -05:00
Jack Nagel
951b09b1c5
link: eliminate naked rescue
2013-04-10 12:02:35 -05:00