Mike McQuaid
9216d8abe6
rubocop-rails: make fixes.
2020-12-02 10:43:04 +00:00
Mike McQuaid
c4cc8da39a
cmd/search.rb: add commented-out deprecation.
2020-11-20 12:43:51 +00:00
EricFromCanada
f784b7107f
manpage: fixes for grammar
2020-11-16 07:56:50 -05:00
Markus Reiter
da9289eff0
Add more type signatures.
2020-11-13 12:26:36 +01:00
William Ma
e9e63db825
search: Raise exception when no formulae/casks are found; Add --pull-request switch
2020-10-14 14:40:24 -04:00
William Ma
9e9e2e63e8
search: Print error message to stderr when not using a tty
2020-10-14 13:32:09 -04:00
Markus Reiter
24ae318a3d
Move type annotations into files.
2020-10-10 14:59:39 +02:00
Dustin Rodrigues
b3c991a674
search: use https for fink query url
2020-09-04 00:06:43 -04:00
Mike McQuaid
3875f16782
Fix --formula and --cask flags.
...
These were all made `--formulae` and `--casks` for consistency but that
doesn't behave as expected because they have special behaviours in
`args`. Instead, use the singular form everywhere.
2020-08-07 09:53:30 +01:00
Markus Reiter
d4c2ffd705
Refactor CLI::Parser
.
2020-07-31 15:07:17 +02:00
Mike McQuaid
a7fe0ed847
cmd: use more and cleanup new args APIs.
2020-03-05 09:40:15 +00:00
Mike McQuaid
6ead927500
cmd/search: tweak documentation text.
2020-03-04 13:14:39 +00:00
vidusheeamoli
67d012afcc
search: add separate flag for formulae
2020-03-04 17:58:19 +05:30
David Rupp
71fd680d51
Fix that reason
is coerced to a boolean
...
f762033a57
introduced a bug such that `reason` is coerced to a boolean, so when displayed it loses information about the actual return value from `MissingFormula.reason`. This patch re-scopes the assignment of `reason` such that the actual reason is retained, while also retaining the sense of the new boolean check.
2019-11-20 09:49:08 -05:00
Markus Reiter
f762033a57
Move condition to nested if
statement.
2019-10-14 11:28:30 +02:00
Thomas Plaçais
e616a23a0b
Remove uneeded warning message when searching for a cask that was migrated from a formula
2019-10-11 22:44:52 +01: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
6520785307
manpages: grammar fixes
2019-08-20 08:26:26 -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
560ccddb69
help: rewrap output to 80 columns
...
Accounts for paragraph breaks and option descriptions. Also fixes some help text nits.
2019-03-11 12:52:07 -04:00
Mike McQuaid
6cb7a00f2d
cmd: remove --help headers and tweak docs.
2019-01-30 21:39:28 +00:00
Gautham Goli
e2e4f93f06
search: Add descriptions to option declarations
2019-01-23 10:14:31 +05:30
Mike McQuaid
9135d16d54
cmd/search: fix truncated regex warning.
...
`ohai` doesn't really work for this case.
Fixes #5520 .
2019-01-12 11:57:37 +00:00
EricFromCanada
799086f548
docs: update man page text
2018-12-04 10:47:38 -05:00
Mike McQuaid
737b84b54b
brew style --fix
fixes.
2018-11-02 17:29:23 +00:00
EricFromCanada
997a207889
docs: fix Official External Commands section
...
Work around ronn's inability to nest indents within list items by modifying its output to add a line break and indent after lines ending with a colon that aren't a list item's first line. This allows `brew.1.md.erb` to join the commands' help text without extra line breaks, which avoids the issue where kramdown was turning any command specs containing pipe characters into tables in the HTML output.
2018-10-05 23:47:48 -04:00
Markus Reiter
e9b9ea49a1
Update to RuboCop 0.59.1.
2018-09-17 03:45:59 +02:00
Markus Reiter
a84a1c63db
Rename Hbc
module to Cask
.
2018-09-06 09:30:52 +02: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
Mike McQuaid
bcb1ec5499
Improve Homebrew/brew line length.
...
Use 124 max line length everywhere. Also, reduce tap max line length to
189 as Homebrew/homebrew-core has that as a maximum now. In future
Homebrew/homebrew-core will also be reduced to 124 maximum line length.
2018-09-02 16:15:09 +01:00
Markus Reiter
6a44c529e5
Readd functionality to list all casks.
2018-06-23 01:54:07 +02:00
Markus Reiter
fcd75877c5
Update brew search
help.
2018-06-19 13:48:23 +02:00
Markus Reiter
b265d870ed
Allow searching Casks by name.
2018-06-18 16:23:36 +02:00
Markus Reiter
b21430b13c
Use extend/os
pattern.
2018-06-18 16:23:36 +02:00
Markus Reiter
1d629c6978
Don’t show Casks on Linux.
2018-06-18 16:23:35 +02:00
Markus Reiter
da193d2f7e
Merge brew cask search
into brew search
.
2018-06-18 16:23:35 +02:00
Markus Reiter
cc93997fb7
Refactor search_taps
.
2018-06-07 14:02:31 +02:00
Markus Reiter
717032d86d
Use Searchable
module.
2018-06-07 14:02:31 +02:00
Markus Reiter
dd8370a9fa
Move shared search logic into Homebrew::Search
module.
2018-06-07 13:50:10 +02:00
Markus Reiter
49619b09ea
Refactor package manager loop.
2018-06-07 13:48:35 +02:00
Markus Reiter
8b33fbef51
Refactor search_taps
to return Formulae and Casks separately.
2018-06-07 13:48:35 +02:00
Markus Reiter
9e807f8fe4
Refactor query_regexp
.
2018-06-07 13:48:35 +02:00
Markus Reiter
b2c85ad945
Refactor search
.
2018-06-07 13:48:35 +02:00
Markus Reiter
d1fb1d2abc
Use simpler check.
2018-05-25 22:47:41 +02:00
Markus Reiter
de246cc528
Update Homebrew-Cask references.
2018-05-25 18:20:02 +02:00
Markus Reiter
c4222141ac
Revert "Update Homebrew-Cask references."
...
This reverts commit 4475651b548afdcf15c4cf7a7cb57baca1885186.
2018-05-25 17:57:32 +02:00
Markus Reiter
4475651b54
Update Homebrew-Cask references.
2018-05-25 17:56:16 +02:00
Markus Reiter
16fb563d49
Refactor MissingFormula
spec.
2018-04-20 19:11:22 +02:00