Douglas Eichelberger
02e2772e9d
Port Homebrew::Cmd::CommandsCmd
2024-03-29 18:53:07 -07:00
Douglas Eichelberger
d01cda2815
Turn up the types
2023-08-12 22:01:22 -07:00
Douglas Eichelberger
24cf6076e8
brew style --fix
2023-04-24 20:42:39 -07:00
Douglas Eichelberger
d56e2884aa
Enable typing in cmd/
2023-03-06 15:01:08 -08:00
Mike McQuaid
d6957a3acb
Homebrew 3.0.0 deprecations/disables
2021-01-29 19:50:24 +00: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
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
Markus Reiter
d4c2ffd705
Refactor CLI::Parser
.
2020-07-31 15:07:17 +02:00
William Ma
f1b6a8debd
Fix style
2020-07-26 22:12:08 -04:00
William Ma
2188b268de
Apply suggestions from code review
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-07-26 22:03:04 -04:00
William Ma
33f1c3164b
commands: Use a hash instead of nested arrays
2020-07-23 12:23:36 -04:00
William Ma
de4f5c1095
commands: Fix code review comments
2020-07-22 22:47:42 -04:00
William Ma
0b613d2fe3
commands: Deduplicate command print logic
2020-07-20 14:00:16 -04:00
William Ma
3bbffdd1d7
commands: Print cask commands
2020-07-20 13:18:09 -04:00
Mike McQuaid
8a9dcad2c7
Move more command handling logic to commands.rb.
2020-02-02 17:05:45 +01:00
EricFromCanada
aea6d79d21
option parser: check for extra named args
2019-12-15 00:04:45 -05:00
EricFromCanada
fcdda8d481
commands: add formatting to headings
2019-12-02 11:32:33 -05:00
EricFromCanada
2477773259
man: include global options with customized descriptions
2019-08-25 23:59:47 -04: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
b4303cd983
manpages: fix command & option descriptions
2019-08-20 09:03:33 -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
6cb7a00f2d
cmd: remove --help headers and tweak docs.
2019-01-30 21:39:28 +00:00
Gautham Goli
c5f01f203a
commands: Use CLI::Parser to parse args
2019-01-20 20:42:15 +05:30
Markus Reiter
e9b9ea49a1
Update to RuboCop 0.59.1.
2018-09-17 03:45:59 +02:00
Mike McQuaid
7a68b4a3f9
Refactor command handling code
...
Don’t rely on having external commands always present in the PATH in
order to find them. Instead, provide an accessory method to Tap so
they can be added and used when needed.
While we’re here, do some general refactoring and cleanup of the
command code in these places.
2017-11-05 15:37:57 +00:00
Mike McQuaid
59238cd343
commands: tweak find_internal_commands.
...
Use a more typical Ruby style.
2017-10-20 10:19:11 +01:00
Dominyk Tiller
2063e0fc52
commands: filter out dotfiles from output
2017-10-18 11:44:12 +01:00
Dominyk Tiller
e308df25a9
commands: pass explicit sort to handle APFS
2017-10-14 04:24:10 +01:00
Markus Reiter
198bf4d3bd
Convert puts_columns
to puts Formatter.columns
.
2016-10-15 17:13:38 +02: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
Zhiming Wang
54884cd9ce
Merge pull request #903 from zmwangx/always-show-dev-commands
...
cmd/commands: always show developer commands
2016-09-14 02:50:32 -04:00
Mike McQuaid
128729988e
cmd/commands: fix Rubocop warnings.
2016-09-11 17:58:58 +01:00
Zhiming Wang
41efd59d2c
cmd/commands: always show developer commands
...
Per discussion in #900 .
Closes #900 .
2016-09-09 18:10:10 -04:00
Mike McQuaid
9514d1f8f5
commands: developer not development commands.
2016-09-08 20:46:55 +01:00
Mike McQuaid
4f6bae46f9
cmd/*: don't restrict dev-cmd to Homebrew developers.
2016-09-08 20:46:37 +01:00
Max Nordlund
fa1fd70a37
Add all the top level comments
2016-04-10 22:59:25 +02:00
Baptiste Fontaine
c1e673e19a
commands: support .sh commands
2016-01-20 22:27:13 +01:00
Xu Cheng
1248294c8c
commands: ensure internal commands are files
...
`Pathname#children(with_directory = false)` doesn't filter directories,
instead it returns path with basename.
Closes Homebrew/homebrew#45325 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-26 16:11:18 +08:00
Martin Afanasjew
21d804eeb8
commands: ensure external commands are executable
...
For consistency with `brew command` and the logic in `brew.sh` (both use
`which` to find/validate an external command), we need to filter files
that are not executable.
Otherwise `brew commands` and thus bash completion will offer commands
that will produce an error when attempting to use them.
Closes Homebrew/homebrew#44999 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-15 19:26:27 +01:00
Martin Afanasjew
366440b5bb
commands: sort external commands by name
...
Closes Homebrew/homebrew#44125 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-21 15:14:42 +01:00
Xu Cheng
c5bb388653
commands: better output
2015-09-12 19:24:41 +08:00
Xu Cheng
ce390b9bd9
add dev-cmd folder
2015-09-12 19:15:45 +08:00
Xu Cheng
ae0e270727
favor flat_map over map...flatten
2015-08-06 22:33:46 +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
a2d9d68591
commands: support list all commands without header
2015-07-11 00:07:29 +08:00