35 Commits

Author SHA1 Message Date
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
Mike McQuaid
57336ea68b commands: move argument to fix warning. 2015-03-08 09:39:14 +00:00
Jack Nagel
10a1952d2c Only "extend self" once on the Homebrew module 2014-06-19 13:10:36 -05:00
Adam Vandenberg
a126946a9b move paths to utils 2013-09-17 06:44:25 -07:00
Adam Vandenberg
fa0872a42c brew commands
Shows a list of built-in commands (but not shortcuts) and searches
for any external commands on the path.

Closes Homebrew/homebrew#22509.
2013-09-17 06:44:25 -07:00