132 Commits

Author SHA1 Message Date
Markus Reiter
1d0ac5c6b3 Pass args correctly in brew outdated. 2020-07-31 19:34:22 +02:00
Markus Reiter
d4c2ffd705 Refactor CLI::Parser. 2020-07-31 15:07:17 +02:00
William Ma
fa60d99265 outdated: vary deprecated message depending on flag 2020-07-27 09:34:52 -04:00
William Ma
f8708ae80c Add todo for --json=v1 deprecation 2020-07-27 09:12:30 -04:00
William Ma
8d4a443e4d outdated: Fix most code review comments 2020-07-22 22:52:18 -04:00
William Ma
b4f8e23ee1 outdated: Fix documentation style
Co-authored-by: Eric Knibbe <enk3@outlook.com>
2020-07-20 14:35:27 -04:00
William Ma
03857319c9 outdated: Update documentation about json versions 2020-07-17 10:28:09 -04:00
William Ma
8c5140f6e6 outdated: Implement json v2 2020-07-17 08:53:19 -04:00
William Ma
299db98dbf Fix PR issues 2020-07-16 23:31:26 +10:00
William Ma
d81296f8dc outdated: Rename --formula-only and --cask-only to --formula and --cask
For consistency with brew --cache
2020-07-16 23:31:26 +10:00
William Ma
ee0e9945e0 outdated: Update logic when handling --json to be more explicit 2020-07-16 23:31:26 +10:00
William Ma
966131f768 outdated: Fail when user supplies formulae and some are outdated 2020-07-16 23:31:26 +10:00
William Ma
a3da9fa350 outdated: Actually print json information for casks 2020-07-16 23:31:26 +10:00
William Ma
bdc99ebd98 outdated: Allow references to cask 2020-07-16 23:31:26 +10:00
Mike McQuaid
a7fe0ed847
cmd: use more and cleanup new args APIs. 2020-03-05 09:40:15 +00:00
Gautham Goli
959b88266d
ARGV: Replace usages of ARGV.resolved_formulae with Homebrew.args 2020-01-02 13:56:19 +00:00
EricFromCanada
2f7c3afeb8 cmd: improve wording of messages, spacing 2019-12-15 00:04:45 -05:00
EricFromCanada
c246207ba0 cmd: updates for command descriptions 2019-12-13 15:24:00 -05: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
EricFromCanada
a3e0647797 manpages: whitespace fixes 2019-08-20 08:24:20 -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
EricFromCanada
aead4a720d outdated & tap-info: set default value for --json
Matching what's already been done for `brew info`.
2019-03-04 11:59:49 -05:00
Mike McQuaid
6cb7a00f2d
cmd: remove --help headers and tweak docs. 2019-01-30 21:39:28 +00:00
Mike McQuaid
867b155479
Add missing conflicts to command options. 2019-01-29 19:39:41 +00:00
Gautham Goli
29ea2351c6
outdated: Use CLI::Parser to parse args 2018-11-05 16:59:46 +05:30
Mike McQuaid
737b84b54b
brew style --fix fixes. 2018-11-02 17:29:23 +00:00
Mike McQuaid
80d75bc0d8
Homebrew/.rubocop: tweak rules.
Adjust the rules based on the current codebase. Remove various enable,
disables and default values that are unnecessary. Add more comments
explaining why. Make minor changes needed to enable a few more rules.
2018-09-02 20:15:09 +01:00
Douglas F Shearer
c808424499 Adjust alignment of select and sort. 2018-05-16 13:41:40 +01:00
Douglas F Shearer
18b362aa96 Alphabetize the brew outdated formula listing.
Sorts by `Formula#<=>`.

Includes updated test example.
2018-05-16 13:01:12 +01:00
EricFromCanada
1d2b4ed321 docs: add more missing option descriptions
and improve wording or formatting where necessary.
2018-02-01 16:06:17 -05:00
Mike McQuaid
566d3cb58b Document all short flags. 2017-04-02 10:14:58 +01:00
William Roe
996dcdee2c Add pinned version to outdated json output
The structure should be consistent, so there are always pinned and
pinned_version fields even if there are no pinned versions for a given formula.
2017-03-27 11:41:08 +01:00
William Roe
70446d9112 Add pinned version to outdated output 2017-03-27 11:30:36 +01:00
EricFromCanada
afc539f86e Update brew's man page formatting and grammar
Also update command specifications to match descriptions.
2017-02-25 17:37:57 -05:00
William Woodruff
d07b9ed7f2
Replace Utils::JSON with corelib JSON calls. 2016-11-20 20:06:25 -05:00
Uladzislau Shablinski
e3f3cb11a6 cmd/outdated: group specs of same formulae
Suppose you have devel and stable versions of `foo` installed.
Their versions should be grouped together regardless their specs.

Output before the change:
  foo (2.4), foo (3.28-01) < 5.1

Output after the change:
  foo (2.4, 3.28-01) < 5.1
2016-10-20 01:08:28 +03:00
Markus Reiter
0ab750bf24 Use module_function for commands. 2016-10-02 00:24:47 +02:00
Mike McQuaid
c9d9e54de6 Fix brew style from #971. 2016-09-19 16:04:32 +01:00
Mike McQuaid
8bae49941c outdated: prefer .join over *. 2016-09-18 19:58:12 +01:00
Alyssa Ross
d3788c58ef brew outdated: use full name in verbose 2016-09-18 19:58:12 +01:00
Alyssa Ross
2a683f2569 upgrade, outdated: follow alias changes 2016-09-18 19:58:09 +01:00
Mike McQuaid
3982950e61 rubocop --auto-correct all hash-rocket usage. 2016-09-17 16:14:13 +01:00
Vlad Shablinsky
7fa9c0e977 Update --fetch-HEAD documentation 2016-08-11 09:30:59 +02:00
Uladzislau Shablinski
b8ce1fe1b2 Update upgrade/outdated documentation (#650) 2016-08-06 22:08:35 +08:00
Vlad Shablinsky
9754dbada8
Update upgrade/outdated methods for head versions
Introduce `--fetch-HEAD` option. Without this option upgrade and
outdated never fetch latest upstream commit to detect if HEAD is
outdated -- tabs are used instead. However, if option is passed,
we fetch commit from upstream, which is more time consuming,
but we can be sure that version is up-to-date or outdated.
2016-08-06 21:25:56 +08:00
Xu Cheng
a8566c9848 various: eliminate the usage of any? (#638)
`any?` is not the opposite of `empty?`. Besides the case that
`[false, nil].any?` will return false, `any?`(O(n)) has much worse
performance than `empty?`(O(1)).
2016-08-05 22:01:32 +08:00
Max Nordlund
fa1fd70a37 Add all the top level comments 2016-04-10 22:59:25 +02:00