29 Commits

Author SHA1 Message Date
Markus Reiter
5be4c9b5e0 Upgrade typed sigils. 2020-11-25 17:04:19 +01:00
Markus Reiter
da9289eff0 Add more type signatures. 2020-11-13 12:26:36 +01:00
Tie
afd7bb8889 make suggestions 2020-11-05 12:27:22 -05:00
Tie
f95e1729a2 move logic from leaves to formula 2020-11-04 16:45:14 -05:00
Markus Reiter
24ae318a3d Move type annotations into files. 2020-10-10 14:59:39 +02:00
Markus Reiter
d4c2ffd705 Refactor CLI::Parser. 2020-07-31 15:07:17 +02:00
EricFromCanada
aea6d79d21 option parser: check for extra named args 2019-12-15 00:04:45 -05:00
Mike McQuaid
3f348286f9
cmd/leaves: handle missing formula.
Use `runtime_formula_dependencies` which does this for us.

Fixes #6827.
2019-12-10 15:44:14 +00:00
Issy Long
341ea60807
Auto-fix Style/RedundantBegin offenses
- This also required auto-fixes for Layout/EmptyLinesAroundBlockBody and
  Layout/InconsistentIndentation once the auto-fixer had got rid of the
  "redundant begin"s.
2019-10-13 16:04:27 +01:00
EricFromCanada
b4303cd983 manpages: fix command & option descriptions 2019-08-20 09:03:33 -04: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
Gautham Goli
2ff0b6471a
leaves: Use CLI::Parser to parse args 2018-11-11 19:13:28 +05:30
Mike McQuaid
9fca172d03 Fix HOMEBREW_RUBY_WARNINGS="-w"
Fix various circular requirements, method redefinitions, etc.
2018-04-07 20:28:56 +01:00
Mike McQuaid
ce9c8c6808 cmd/leaves: handle missing formulae.
We can't get dependencies of unavailable formulae so don't try.

Fixes #3995.
2018-03-29 10:58:01 +01:00
Mike McQuaid
05d06bcc50 cmd/leaves: general cleanup. 2018-03-27 14:52:47 +01:00
Maxim Belkin
313410035d
leaves: account for requirements 2017-10-20 14:21:21 -05:00
Dominyk Tiller
795c7170e3
leaves: pass explicit sort to handle APFS 2017-10-14 06:18:49 +01:00
Markus Reiter
0ab750bf24 Use module_function for commands. 2016-10-02 00:24:47 +02:00
Xu Cheng
820b6347b8
remove unnecessary Tab.for_formula
We already loaded tab in ARGV.resolved_formulae or Formulary.from_rack
2016-07-18 18:11:53 +08:00
Max Nordlund
fa1fd70a37 Add all the top level comments 2016-04-10 22:59:25 +02: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
4d27fe0979 leaves: use Formula#full_name 2015-05-29 17:02:22 +08:00
Jack Nagel
285f8f77e6 Tab#with? accepts the same types as BuildOptions#with? 2014-10-09 00:20:15 -05:00
Jack Nagel
5247f44205 leaves: load tab outside of the inner loop 2014-10-09 00:20:15 -05:00
Jack Nagel
10a1952d2c Only "extend self" once on the Homebrew module 2014-06-19 13:10:36 -05:00
Troels Thomsen
fdf5ecf4bb Use name of formula rather than name of dependency
Closes Homebrew/homebrew#27192.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-03-04 16:00:25 -06:00
Jack Nagel
674d041d80 Move brew-leaves into core
Closes Homebrew/homebrew#24371.
2013-11-16 14:10:25 -06:00