115 Commits

Author SHA1 Message Date
botantony
92832c258c
dev-cmd/create: add --cabal switch
Signed-off-by: botantony <antonsm21@gmail.com>
2025-05-18 20:18:34 +02:00
Rafael Gallani
ef13b69b03
dev-cmd/create: handle nil stdin 2025-04-11 08:48:54 +01:00
Anatoli Babenia
202e52ded4
Update Library/Homebrew/dev-cmd/create.rb
Co-authored-by: Adrian Ho <the.gromgit@gmail.com>
2025-03-26 21:32:05 +03:00
Anatoli Babenia
901f9166f9 create: show command to install formula for testing 2025-03-26 21:12:00 +03:00
botantony
35dcf8e362
creator: add zig option 2025-02-21 15:05:42 +01:00
Adrian Ho
987363da15 clear core tap cache on formula creation
Addresses inability to find just-created formula, see https://github.com/Homebrew/brew/pull/19244#issuecomment-2646030394 for context.
2025-02-11 11:41:15 +08:00
Douglas Eichelberger
e1fdd2eda4 Enable strict typing in NamedArgs 2024-12-03 17:43:22 -08:00
Mike McQuaid
6e55426407
dev-cmd/create: tweak wording. 2024-09-26 12:25:06 +01:00
Anatoli Babenia
82f9ebd613 create: show audit command on the next line
This makes it easy to copy/paste the command, which needs to be
run anyway.
2024-09-26 09:06:50 +03:00
Douglas Eichelberger
c50fb2dbd2 Remove redundant cli/parser requires 2024-03-29 18:53:07 -07:00
Douglas Eichelberger
9297a850aa Port Homebrew::DevCmd::Create 2024-03-21 19:04:30 -07:00
Michael Cho
3021ba91fd
dev-cmd/create: add types
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-17 11:33:47 -04:00
Mike McQuaid
ea2892f8ee
brew.rb: handle missing args. 2024-03-07 16:20:20 +00:00
Anatoli Babenia
55a37b2148
Ask to use HOMEBREW_NO_INSTALL_FROM_API=1 for audit 2024-02-16 08:45:05 +03:00
Razvan Azamfirei
ae1c058f9b
create: modify cask template 2023-12-15 15:34:43 -05:00
Anatoli Babenia
6afd15ae00
create: Fix getting name from GitHub archives
`brew create https://github.com/lapce/lapce/archive/v0.3.0.tar.gz` was
getting the wrong name 'v3.0.0' from the URL

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-12-05 14:49:53 -05:00
Anatoli Babenia
dd939340fd formula_creator: Pass url to constructor 2023-11-29 19:13:19 +00:00
Anatoli Babenia
a7756bd303 formula_creator: Remove tap accessor 2023-11-29 18:57:24 +00:00
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