aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/commands.rb
AgeCommit message (Collapse)Author
2017-11-05Refactor command handling codeMike McQuaid
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-10-20commands: tweak find_internal_commands.Mike McQuaid
Use a more typical Ruby style.
2017-10-18commands: filter out dotfiles from outputDominyk Tiller
2017-10-14commands: pass explicit sort to handle APFSDominyk Tiller
2016-10-15Convert `puts_columns` to `puts Formatter.columns`.Markus Reiter
2016-10-02Remove `private_class_method` from commands.Markus Reiter
2016-10-02Use `module_function` for commands.Markus Reiter
2016-09-14Merge pull request #903 from zmwangx/always-show-dev-commandsZhiming Wang
cmd/commands: always show developer commands
2016-09-11cmd/commands: fix Rubocop warnings.Mike McQuaid
2016-09-09cmd/commands: always show developer commandsZhiming Wang
Per discussion in #900. Closes #900.
2016-09-08commands: developer not development commands.Mike McQuaid
2016-09-08cmd/*: don't restrict dev-cmd to Homebrew developers.Mike McQuaid
2016-04-10Add all the top level commentsMax Nordlund
2016-01-20commands: support .sh commandsBaptiste Fontaine
2015-10-26commands: ensure internal commands are filesXu Cheng
`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-15commands: ensure external commands are executableMartin Afanasjew
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-09-21commands: sort external commands by nameMartin Afanasjew
Closes Homebrew/homebrew#44125. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-12commands: better outputXu Cheng
2015-09-12add dev-cmd folderXu Cheng
2015-08-06favor flat_map over map...flattenXu Cheng
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-11commands: support list all commands without headerXu Cheng
2015-03-08commands: move argument to fix warning.Mike McQuaid
2014-06-19Only "extend self" once on the Homebrew moduleJack Nagel
2013-09-17move paths to utilsAdam Vandenberg
2013-09-17brew commandsAdam Vandenberg
Shows a list of built-in commands (but not shortcuts) and searches for any external commands on the path. Closes Homebrew/homebrew#22509.