97 Commits

Author SHA1 Message Date
Anatoli Babenia
b2df600e3e Move mode into constructor params 2023-11-28 18:07:32 +00:00
Anatoli Babenia
912678ca5e Save tap in constructor 2023-11-28 16:07:38 +00:00
Anatoli Babenia
d1820a8fb1 brew style wrapping of a long call 2023-11-28 15:57:19 +00:00
Anatoli Babenia
c17fc7b6f6 Remove license accessor 2023-11-28 15:46:01 +00:00
Anatoli Babenia
2b3ef56aa4 Try keyword arguments 2023-11-28 15:35:58 +00:00
Anatoli Babenia
259823cf4d formula_creator: Set initial values for name and version in constructor 2023-11-27 21:08:18 +00:00
Anatoli Babenia
e2d2ea1d04 formula_creator: Remove dependency on args 2023-11-27 21:08:10 +00:00
Anatoli Babenia
c148396b98 create: Pass fetch value directly into constructor 2023-11-27 21:04:19 +00:00
Anatoli Babenia
d8f19ff881 Rename generate! to write_formula! 2023-11-23 18:04:03 +03:00
Anatoli Babenia
51b16585fb formula_creator: Remove path attr to reduce code complexity
`path` attribute is used only once, and it is easier to calculate
it on the fly than to update its state after different methods.
2023-11-21 13:28:47 +03:00
Mike McQuaid
b3c33d34ab
Various sharding fixes
- Load paths with no API when needed (e.g. for `brew edit`)
- Use no API mode for `brew log` as it's needed there
- Define sharding format for homebrew-cask and homebrew-core inside
  `Tap` methods
- Create new formulae/casks in location defined by these `Tap` methods
- Fix a bug in Formulary that made sharded formulae lookup less
  efficient (and possibly broke it for core and some API usage)
- Fix various other hardcoded Formula/Cask directory assumptions

Co-authored-by: Bo Anderson <mail@boanderson.me>
2023-08-04 16:43:13 +01:00
Mike McQuaid
7da934f7e2
Deprecate/disable/delete code.
The next release after this is merged will be 4.1.0.

Co-authored-by: Markus Reiter <me@reitermark.us>
2023-07-06 16:56:20 +01:00
Alexander Bayandin
baf099f804
Use taps names for error messages for consistency
Co-authored-by: Bo Anderson <mail@boanderson.me>
2023-06-23 12:58:53 +01:00
Alexander Bayandin
8d18680cba
cmd/create: fix tap name for TapUnavailableError 2023-06-23 11:12:02 +00: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
EricFromCanada
8f445de261
dev-cmd/create: also prompt for name with --cask 2022-12-06 13:04:51 -05:00
Mike McQuaid
2d5eab2e1c
brew style --fix 2022-06-30 08:56:21 +01:00
Bo Anderson
861dea9ada
Bump various type strictnesses 2021-09-11 01:00:23 +01:00
EricFromCanada
bb26935344
create: improve cask token & version generation 2021-04-13 15:45:30 -04:00
nandahkrishna
8e5451df2f
style: use parentheses for assignment in conditions 2021-02-12 18:33:37 +05:30
EricFromCanada
a427de5bee capitalization fixes
"curl" is the binary, while "cURL" is the umbrella project.
2021-01-26 15:36:44 -05:00
EricFromCanada
2e982cd2a2 use odie when commands encounter errors 2021-01-26 15:36:43 -05: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
EricFromCanada
c2ce486d3a create: allow creating casks in a specified tap 2020-12-16 20:52:05 -05:00
EricFromCanada
c8e821d307 create: fix options handling 2020-12-08 10:14:20 -05:00
Markus Reiter
b6492094d0 Allow creating casks with brew create --cask. 2020-11-21 18:52:26 +01: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
EricFromCanada
3768b7a6e9 apidoc: update comment wording, punctuation, formatting 2020-11-06 00:21:02 -05: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
Rylan Polster
c1ba64677f create: call update-python-resources for --python 2020-07-29 09:50:16 -04:00
Markus Reiter
c0d42dd922 Remove --force from global_options. 2020-07-28 10:31:11 +02:00
Markus Reiter
e669949659 Pass args to create instead of using global args. 2020-07-25 02:37:10 +02:00
Dustin Rodrigues
90cc4aefa5 create: use https rubydoc url 2020-07-23 16:18:52 -04:00
Seeker
a3f1e09bce dev-cmd/create: add --node option 2020-07-17 20:46:00 -07:00
Lionell
5f6917ae7c Merge branch 'master' into license 2020-06-28 02:07:53 +08:00
Dario Vladovic
519c339261
create: add --crystal option 2020-06-25 18:23:06 +02:00
Lionell Loh Jian An
9845091f4d
Apply suggestions from code review
license: code review changes

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-06-24 18:32:53 +08:00
Lionell
d92f747b1e create: add license field as parsable arg 2020-06-17 22:52:25 +08:00
Issy Long
8eba9b86ab
Change occurrences of "blacklist" to "denylist" or "disallow"
- Depending on context, I've gone for either "denylist" or "disallow"
  here. "Disallow" for things in sentences, or actions, and "denylist"
  for list of things.
2020-06-06 22:38:33 +01:00
Dawid Dziurla
a3eefda0f9
create: add --ruby option 2020-03-21 15:41:27 +01: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
EricFromCanada
b817796562 Grammar fixes for status messages 2019-12-02 11:38:06 -05:00
Dawid Dziurla
de4d08028e
create: add --perl option 2019-09-26 20:12:35 +02:00
Dawid Dziurla
b4c56937b1
create: add --rust option 2019-09-25 14:29:09 +02:00
Dawid Dziurla
7b1288f658
create: add --python option 2019-09-24 19:35:21 +02:00