43 Commits

Author SHA1 Message Date
Markus Reiter
5be4c9b5e0 Upgrade typed sigils. 2020-11-25 17:04:19 +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
Markus Reiter
d4c2ffd705 Refactor CLI::Parser. 2020-07-31 15:07:17 +02:00
EricFromCanada
aea6d79d21 option parser: check for extra named args 2019-12-15 00:04:45 -05:00
EricFromCanada
b4303cd983 manpages: fix command & option descriptions 2019-08-20 09:03:33 -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
e095da4d01
rubocop: enable Layout/EmptyLineAfterGuardClause. 2019-02-21 12:55:49 +00:00
Mike McQuaid
6cb7a00f2d
cmd: remove --help headers and tweak docs. 2019-01-30 21:39:28 +00:00
Gautham Goli
0eecbb21fa
config: Use CLI::Parser to parse args 2019-01-20 21:29:19 +05:30
Markus Reiter
0ab750bf24 Use module_function for commands. 2016-10-02 00:24:47 +02:00
Mike McQuaid
9e7b8c61a9 Make config command cross-platform.
Closes #168.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-05-08 16:51:22 +01:00
Misty De Meo
a662bd4470 config: return early if java_home is missing
Fixes mistydemeo/tigerbrew#365.
2016-04-22 22:37:21 -07:00
Max Nordlund
fa1fd70a37 Add all the top level comments 2016-04-10 22:59:25 +02:00
Xu Cheng
2bb30fc5f0 --version/config: show core tap information 2016-04-02 21:51:36 +08:00
Dominyk Tiller
8183f75dda config: split conditional
Stops Rubocop moaning about one line conditionals.

Closes Homebrew/homebrew#47537.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-03 19:08:11 +00:00
Baptiste Fontaine
abfaa59e06 MacOS: full_version added
Closes Homebrew/homebrew#44988.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-18 22:57:42 +08:00
Xu Cheng
0357673f21 config: fix ruby path for ruby 1.8 2015-09-10 15:44:46 +08:00
Xu Cheng
12a4cf3808 config: read ruby/python interpreter directly
Closes Homebrew/homebrew#43750.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-10 13:37:14 +08:00
Xu Cheng
63246fbc6c config: show all installed JDK
Closes Homebrew/homebrew#43730.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-09 20:44:09 +08:00
Xu Cheng
aae5b4f721 config: use Homebrew.git_origin 2015-09-09 12:19:16 +08:00
Xu Cheng
8a1495ef40 config: use quiet_system
Closes Homebrew/homebrew#43691.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-08 17:36:29 +08:00
Baptiste Fontaine
5dd0f089a3 config: show HOMEBREW_REPOSITORY
Closes Homebrew/homebrew#43423.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-31 09:21:51 +02:00
William Woodruff
1face808f5 Add guards to calls that would trigger Xcode install requests
add guard in Formula#file_modified? to prevent git popup

add guard in Superenv.bin before calling MacOS::Xcode.version

add guard against missing Xcode/CLT in Xcode.uncached_version

return nil instread of 0 in uncached_version when Xcode/CLT are not present, to distinguish from linuxbrew behavior

checks against pour_bottle? and needs_relocation?, add guard around keg.relocate_install_names to check pour_bottle?/needs_relocation? as well

needs_relocation? becomes skip_relocation?, use cellar attr to indicate relocation instead of does_not_need_relocation

MacOS.can_build? becomes MacOS.has_apple_developer_tools?
2015-08-21 11:02:33 -07: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
ab9a62370f support downloading bottles through 3rd-party mirror
Closes Homebrew/homebrew#41328.

Closes Homebrew/homebrew#41332.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-06 18:05:00 +08:00
Mike McQuaid
c2e0fb0c08 config: be quieter with java_home.
References Homebrew/homebrew#36249.
2015-01-27 12:25:27 +00:00
Xu Cheng
8fc3c4c8e9 brew-config: check whether java exists in PATH
For OS X, we will call `/usr/libexec/java_home` to exam whehter
java is installed.

Also rename the method to follow the same naming pattern of other
similar methods.

Closes Homebrew/homebrew#36187.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-25 10:05:56 +00:00
Baptiste Fontaine
aec2f01a55 config: add Java to output.
Closes Homebrew/homebrew#35596.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-22 17:16:36 +01:00
Xu Cheng
6d786e7dbb brew-config: show realpath for pyenv and rbenv
Closes Homebrew/homebrew#35819.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-17 18:48:34 +01:00
Jack Nagel
8ebaa9c0a9 Handle newer ruby versions correctly in config output
Since Ruby 2.1, patch releases take the form "2.x.y" rather than
"2.x.y-pnum".
2014-12-31 09:54:44 -05:00
Jack Nagel
77c0f60434 Always dump full configuration 2014-12-30 23:33:50 -05:00
Xu Cheng
b10c58d6e2 brew-config: always show XCode/CLT state
Closes Homebrew/homebrew#33860.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-12-30 23:18:05 -05:00
Tim D. Smith
facb82e4bc Shows time since last commit in brew config
Closes Homebrew/homebrew#32936.
2014-10-05 16:17:57 -07:00
Jack Nagel
c18eea6a17 Default to stdout since other code calls this method 2014-07-19 23:28:56 -05:00
Jack Nagel
74ad97ce7f Remove intermediate method 2014-07-19 22:55:49 -05:00
Jack Nagel
010bd2783e Allow verbose config to be written to any IO object 2014-07-19 22:33:59 -05:00
Jack Nagel
c0579443f2 Don't mess with stdout when writing build config to a file 2014-07-19 22:33:00 -05:00
Jack Nagel
4c05d411f3 Add a method for getting the repo HEAD 2014-06-30 19:18:28 -05:00
Jack Nagel
10a1952d2c Only "extend self" once on the Homebrew module 2014-06-19 13:10:36 -05:00
Jack Nagel
cad5704fc7 Update build error config dump for Ruby 2.0 2014-06-07 15:57:17 -05:00
Adam Vandenberg
d4b0599a86 --config -> config 2014-04-30 19:09:29 -07:00