Douglas Eichelberger
54fad14ff3
Fix module_function errors
2023-03-06 15:11:10 -08:00
Douglas Eichelberger
1c44a8861d
Fix type errors
2023-03-06 15:03:19 -08:00
Douglas Eichelberger
d56e2884aa
Enable typing in cmd/
2023-03-06 15:01:08 -08:00
Bo Anderson
02164a35db
Use ORIGINAL_PATHS over envs; reject nil PATH
2022-06-17 19:47:57 +01:00
hyuraku
a6b7a9662a
repair command description
2021-09-30 09:56:39 +09:00
hyuraku
4685120692
add cask option to brew log
2021-09-29 22:24:20 +09:00
Nanda H Krishna
47a549e944
Fix style using brew style --fix
2021-06-02 11:43:16 +05:30
Bo Anderson
20ff68a425
Fix brew style
.
2021-03-17 20:45:44 +00:00
EricFromCanada
6fc116318e
fixes for grammar and wording
2021-01-26 16:19:47 -05:00
Rylan Polster
d1f3e39b7b
Update commands to generate usage banner
2021-01-18 21:20:11 -05:00
Rylan Polster
da811373d3
Add named_args DSL for commands
2021-01-13 17:09:42 -05:00
EricFromCanada
72bc057014
manpage: fixes for formatting
2020-11-16 08:02:50 -05: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
Bo Anderson
7e47d1be94
cmd/log: fix args error
2020-08-03 17:30:46 +01:00
Markus Reiter
05aada4333
Fix flags for brew log
.
2020-07-31 17:46:54 +02:00
Markus Reiter
d4c2ffd705
Refactor CLI::Parser
.
2020-07-31 15:07:17 +02:00
EricFromCanada
9d6eb41fc5
cmd/dev-cmd: misc. usage and wording fixes
2020-04-19 13:31:54 -04:00
Mike McQuaid
a7fe0ed847
cmd: use more and cleanup new args APIs.
2020-03-05 09:40:15 +00:00
Dawid Dziurla
f11ddb9aab
log: use user path
...
Without this, one can't use a custom pager, if it's present in
non-standard PATH, like for example Homebrew on Linux prefix.
2020-02-24 13:26:42 +01:00
EricFromCanada
aea6d79d21
option parser: check for extra named args
2019-12-15 00:04:45 -05:00
Gautham Goli
393c8dfbf1
ARGV: Replace options_only and flags_only with Homebrew.args counterparts
2019-09-23 12:39:22 +05:30
Mike McQuaid
963cc556d4
Revert "argv: move options_only to cli/args"
2019-09-13 09:34:43 +01:00
Gautham Goli
4586632855
argv: move options_only to cli/args
2019-09-07 21:32:50 +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
EricFromCanada
b4303cd983
manpages: fix command & option descriptions
2019-08-20 09:03:33 -04:00
EricFromCanada
ee314617f7
manpages: update command usage strings
2019-08-20 08:55:54 -04:00
EricFromCanada
6340792f78
manpages: output formatting fixes
2019-08-20 08:28:35 -04: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
70b93f65ea
*cmd/*: use *system instead of exec for easier testing.
...
This improves both test coverage, makes it easier to use a profiler and
a debugger.
2019-03-27 21:15:24 +00:00
Mike McQuaid
9144625940
log: use CLI::Parser.
2019-01-30 21:38:45 +00:00
ilovezfs
17f80a44e6
Revert "Use Homebrew's gitconfig for various commands"
2018-01-15 07:30:56 +00:00
Mike McQuaid
228cbd81c9
Use Homebrew's gitconfig for various commands
...
Git is a transport and storage mechanism for us so we don't want to
allow arbitrary customisation of this due to user issues e.g. #3664
and #3561 .
Fixes #3664 .
2018-01-11 20:40:59 +00:00
Markus Reiter
9bee9ca575
Use “squiggly” heredocs.
2017-10-18 14:39:09 +02:00
Mike McQuaid
623c95b3f8
cmd/log: improve output messaging.
...
This wasn’t adapted to the new, multiple repository world.
2017-03-20 18:20:31 +02:00
Mike McQuaid
735532840d
log: follow renames.
...
Now that we can rename formulae this makes this command more useful
for viewing longer histories.
2017-02-12 16:53:22 +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
4e090530b1
cmd/log: fix Rubocop warnings.
2016-09-11 17:59:00 +01:00
Martin Afanasjew
823505a058
Fix minor issues in command help text formatting
...
- Inconsistent or unneeded indentation
- Missing or superfluous empty lines
- Missing or wrongly formatted arguments in command summary
- Missing punctuation
2016-08-17 01:25:51 +02:00
Max Nordlund
fa1fd70a37
Add all the top level comments
2016-04-10 22:59:25 +02:00
Baptiste Fontaine
e8c8b876af
brew-log: warn if shallow clone
...
Closes Homebrew/homebrew#46283 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-11-23 15:50:15 +01:00
Xu Cheng
8297810e3c
add Formulary::path method
...
This is a little code refactoring splited from Homebrew/homebrew#36753
The idea is to eliminate `Formula#path` outside of `formulary.rb`.
And I indent to deprecate `Formula#path` method when I reimplement
symlink free tap function.
Closes Homebrew/homebrew#39313 .
2015-05-08 13:51:26 +08:00
Jack Nagel
10a1952d2c
Only "extend self" once on the Homebrew module
2014-06-19 13:10:36 -05:00
Jack Nagel
cfee535786
Remove now unnecessary realpath calls
2014-04-06 00:31:07 -05:00
Jack Nagel
26785dbe5d
Use Formula.path
2014-02-28 16:51:15 -06:00
Adam Vandenberg
46d2b2165a
Allow brew log on deleted formulae.
...
Closes Homebrew/homebrew#19995 .
2013-05-23 09:21:33 -07:00
Max Howell
ac27ff1bdf
brew log
works with Tapped formula
...
Fixes Homebrew/homebrew#12446 .
2012-08-05 10:34:44 -04:00