Douglas Eichelberger
24cf6076e8
brew style --fix
2023-04-24 20:42:39 -07:00
Bo Anderson
cee86846ce
Fix Sorbet violations.
2021-08-06 14:03:00 +01:00
EricFromCanada
2ae4f11963
reorder command flags
2021-01-26 15:36:44 -05:00
Rylan Polster
d1f3e39b7b
Update commands to generate usage banner
2021-01-18 21:20:11 -05:00
Dawid Dziurla
332372469f
cmd: indicate multiple named args in usage banner
2021-01-15 13:04:00 +01:00
Rylan Polster
da811373d3
Add named_args DSL for commands
2021-01-13 17:09:42 -05:00
hyuraku
0a97cd18a5
set default args
2020-12-17 21:14:18 +09:00
hyuraku
7be216fcbe
change function name
2020-12-17 21:07:43 +09:00
hyuraku
d7f9bb6247
add function to define path
2020-12-17 21:07:43 +09:00
hyuraku
16d13fe086
add two options to cmd/home
2020-12-11 23:09:14 +09:00
Markus Reiter
e0aa934219
Ensure default cask tap is installed on CaskUnavailableError
.
2020-12-05 03:25:58 +01:00
Markus Reiter
3c2ec1c60f
Deprecate remaining cask commands.
2020-11-21 19:56:12 +01:00
Markus Reiter
da9289eff0
Add more type signatures.
2020-11-13 12:26:36 +01:00
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
William Ma
b63b56f4c2
home: Remove warning for cask with same name
2020-08-17 13:08:31 -04:00
William Ma
39c2f8582d
home: Add disclaimer for opening formula that shadows cask
2020-08-14 11:02:30 -04:00
William Ma
b05acaaece
home: Use convenience methods for loading formulae and casks
2020-08-11 08:40:55 -04:00
Markus Reiter
d4c2ffd705
Refactor CLI::Parser
.
2020-07-31 15:07:17 +02:00
William Ma
efdf9ce1aa
style: Fix style
2020-06-23 09:50:45 -04:00
William Ma
27abc8c50b
home: Print info for each formula/cask opened
2020-06-23 09:44:17 -04:00
William Ma
78ccb05166
Fix style issues
2020-06-22 16:07:18 -04:00
William Ma
2a11bcf501
rework error handling to show the error for both formula and cask loading
2020-06-22 15:39:15 -04:00
William Ma
0495281325
home: write tests using cask as argument
2020-06-22 10:46:59 -04:00
William Ma
46d344c0d1
home: print message when formula is not found
2020-06-19 11:46:33 -04:00
William Ma
ceb56df834
home: integrate brew home and cask home
2020-06-19 10:37:58 -04:00
Mike McQuaid
a7fe0ed847
cmd: use more and cleanup new args APIs.
2020-03-05 09:40:15 +00:00
Gautham Goli
22e25dd593
argv: move formulae to cli/args
2019-12-11 16:36:23 +05:30
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
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
bf5fe0569c
home: Use CLI::Parser to parse args
2018-11-06 22:24:29 +05:30
Markus Reiter
0ab750bf24
Use module_function
for commands.
2016-10-02 00:24:47 +02:00
Max Nordlund
fa1fd70a37
Add all the top level comments
2016-04-10 22:59:25 +02:00
Jack Nagel
10a1952d2c
Only "extend self" once on the Homebrew module
2014-06-19 13:10:36 -05:00
Jack Nagel
aa58a404ed
Fix another handful of warnings
2013-04-06 00:14:03 -05:00
Jack Nagel
9362a7c897
Respect BROWSER environment variable
2012-12-27 23:41:44 -06:00
Max Howell
768910283a
Refactor the brew command into one file per command
...
The code was sucking. To the extent that maintenance was hard. It's a lot
easier to work with code that is sensibly split at sensible boundaries. So
now it is more like that.
But the refactor is minimal. Because we don't want you to have more merge
hell than absolutely necessary.
If you merge you will need to pay attention to brew.h.rb (as it is deleted)
and bin/brew (as command logic is gone). It will be painful, but you will just
have to help git out by moving any changes around manually.
Note compatibility.rb. It ensures that any function renames or removals don't
break anything. We're pretty serious about backwards compatibility. And that's
because we encourage you to hack around with the innards. And we couldn't do
that if we would then just make stuff disappear behind your back.
2011-03-12 11:55:02 -08:00