45 Commits

Author SHA1 Message Date
Mike McQuaid
aa6ea4be83
Call Homebrew.install_bundler_gems! more consistently.
- Call `Homebrew.install_bundler_gems!` as early as possible
- Always call `Homebrew.install_bundler_gems!` in `dev-cmd` rather than
  in `Library/Homebrew` helpers method (to ensure we don't accidentally
  call this for non-dev-cmd commands)
2024-04-30 10:39:35 +01:00
Douglas Eichelberger
c50fb2dbd2 Remove redundant cli/parser requires 2024-03-29 18:53:07 -07:00
Douglas Eichelberger
1097496a06 Port Homebrew::DevCmd::BumpRevision 2024-03-20 10:25:18 -07:00
Bo Anderson
3b1c171184
Further split up Gemfile into groups 2023-09-27 17:33:44 +01:00
Bo Anderson
bb7aef85db
Migrate remaining no-api commands to new scoped system 2023-06-22 17:11:20 +01:00
Douglas Eichelberger
24cf6076e8 brew style --fix 2023-04-24 20:42:39 -07:00
Bo Anderson
02164a35db
Use ORIGINAL_PATHS over envs; reject nil PATH 2022-06-17 19:47:57 +01:00
Steve Peters
d53dab62c9
bump-revision: add --remove-bottle-block option
This removes a bottle block for the specified formulae
while bumping the revision.
2021-12-26 03:42:39 -08:00
Thierry Moisan
4f4448c514
bump-revision: add --write switch 2021-09-08 11:14:31 -04:00
Rylan Polster
d1f3e39b7b
Update commands to generate usage banner 2021-01-18 21:20:11 -05:00
Rylan Polster
da811373d3 Add named_args DSL for commands 2021-01-13 17:09:42 -05:00
Seeker
2ebfb4221c utils/ast: add FormulaAST class 2021-01-10 09:25:46 -08:00
Seeker
332778025a utils/ast: add Sorbet method signatures 2021-01-07 13:54:05 -08:00
Seeker
8828b4bd68 utils/ast: add stanza_text helper function 2021-01-03 22:26:19 -08:00
Seeker
24636d8bea utils/ast: cleanup
- move `add_bottle_stanza!` from `Utils::Bottles` to `Utils::AST`
- add `replace_bottle_stanza!`
- simplify parameters
2020-12-29 03:40:39 -08:00
Seeker
4520c05957 bump-revision: use Utils::AST 2020-12-22 22:05:23 -08:00
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
Rylan Polster
eb5e11a5e4 bump-revision: fix for license symbols 2020-09-12 19:17:32 -04:00
Rylan Polster
138c224be9 bump-revision: fix for new license syntax 2020-09-12 12:56:27 -04:00
William Ma
fa7bd3bff6 args: Migrate usage of args loading methods to args.named 2020-08-23 09:02:20 -04:00
Mike McQuaid
3a91c37e66
Fix RuboCop checks. 2020-08-19 17:12:32 +01:00
Dawid Dziurla
36f3e09669
bump-revision: allow multiple formulae to be specified 2020-08-15 10:43:29 +02:00
Markus Reiter
d4c2ffd705 Refactor CLI::Parser. 2020-07-31 15:07:17 +02:00
Rylan Polster
bdc8438f7c bump-revision: update revision syntax 2020-07-30 09:32:29 -04:00
Rylan Polster
1ac470fe7a bump-revision: handle array of licenses
Allowing multiple licenses meant that `formula.license` returned an
array. This converts that array to the appropriate format for
`bump-revision`
2020-07-30 09:30:44 -04:00
Markus Reiter
c0d42dd922 Remove --force from global_options. 2020-07-28 10:31:11 +02:00
Seeker
c052e59df3 dev-cmd/bump-revision: insert revision after license 2020-07-12 20:05:27 -07:00
EricFromCanada
5a4a57310f bump-revision: insert after homepage if stable block is present 2020-04-26 15:13:34 +01:00
Alexander Bayandin
7ba0f34f72 Revert "Merge pull request #7316 from bayandin/fix-bump-revision"
This reverts commit a7fdc7046f5cda8743591040117e409cd24dae76, reversing
changes made to bfa175d118112989b24908ea16c5a97c1dd011e4.
2020-04-26 15:11:31 +01:00
Mike McQuaid
a7fdc7046f
Merge pull request #7316 from bayandin/fix-bump-revision
bump-revision: fix handling formula with stable block
2020-04-26 13:31:45 +01:00
EricFromCanada
9d6eb41fc5 cmd/dev-cmd: misc. usage and wording fixes 2020-04-19 13:31:54 -04:00
Alexander Bayandin
7a4c1cc8ac bump-revision: fix handling formula with stable block 2020-04-09 16:12:14 +01:00
Mike McQuaid
1e265247ca
rubocop: apply autofixes. 2020-03-13 21:16:18 +00:00
Mike McQuaid
e3ac94fc5d
dev-cmd: use more and cleanup new args APIs. 2020-03-05 09:40:15 +00:00
EricFromCanada
aea6d79d21 option parser: check for extra named args 2019-12-15 00:04:45 -05:00
Gautham Goli
22e25dd593 argv: move formulae to cli/args 2019-12-11 16:36:23 +05:30
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
ee314617f7 manpages: update command usage strings 2019-08-20 08:55:54 -04:00
EricFromCanada
6340792f78 manpages: output formatting fixes 2019-08-20 08:28:35 -04:00
EricFromCanada
a3e0647797 manpages: whitespace fixes 2019-08-20 08:24:20 -04:00
Thierry Moisan
816fdd0f5a
bump-revision: raise an error when no formula 2019-05-17 20:50:15 -04:00
Izaak Beekman
b52e23c3ff
Fix audit errors in dev-cmd/bump-revision.rb
- Method alignment was bad across line break in 3 places.
2019-05-14 12:03:06 -04:00
Thierry Moisan
c5640acae5
Add bump-revision bump command
bump-revision will increase by one the revision or add "revision 1" if
it doesn't exist.
2019-04-24 22:17:59 -04:00