Rylan Polster
dac54fbbfb
Merge pull request #13536 from max-ae/generate-completions-dsl
...
Formula: add DSL to generate completions
2022-08-12 10:39:37 -04:00
Max Eisner
873954cb71
Revert "simplify"
...
This reverts commit 2369a58665d151035cb8047343a10fb9e0f40806.
2022-08-11 21:32:03 +02:00
Max Eisner
2369a58665
simplify
2022-08-11 20:59:51 +02:00
Max Eisner
fa22a167d3
refactor to variable length commands
arg
2022-08-11 18:12:08 +02:00
Max Eisner
a79e8c3692
allow subcmd
to take an array, formulae like circleci need it
2022-08-11 14:26:17 +02:00
Max Eisner
19530b2239
make subcmd optional again, formulae like certigo
need it
2022-08-11 14:07:32 +02:00
Lukas Oberhuber
3d60d610dd
Merge branch 'master' into debug-symbols
2022-08-10 18:44:09 -10:00
Max Eisner
e091d62aa3
Merge branch 'master' into generate-completions-dsl
2022-08-10 19:10:44 +02:00
Max Eisner
074bc3c247
fix style
2022-08-10 18:00:44 +02:00
Max Eisner
3786887146
add examples
2022-08-10 15:50:18 +02:00
Max Eisner
08bf179f7a
fix documentation
2022-08-10 15:50:17 +02:00
Max Eisner
55a26ce4cc
make executable
and subcmd
mandatory args
2022-08-10 15:50:17 +02:00
Max Eisner
e448601964
rename cmd
to subcmd
2022-08-10 15:50:15 +02:00
Sean Molenaar
8e49be58b3
Merge pull request #13623 from SMillerDev/fix/exceptions/report_issues_inreplace_head
...
brew.rb: tell users to fix head issues with inreplace
2022-08-08 16:48:24 +02:00
Sean Molenaar
040d93a006
formula: add back docstring
2022-08-07 15:55:37 +02:00
Sean Molenaar
03a489bf78
brew.rb: tell users to fix head issues with inreplace
2022-08-07 13:34:56 +02:00
Kevin
93bf9e5ba2
Merge pull request #13532 from apainintheneck/add-uninstall-autoremove
...
cmd/uninstall: Add env variable that runs autoremove after uninstalls
2022-08-03 18:10:32 -07:00
Max Eisner
b792a4f645
fix TypeError
2022-07-31 21:48:02 +02:00
Max Eisner
b2d94dc897
update arg names in docs and signature
2022-07-31 21:01:42 +02:00
Lukas Oberhuber
4b0d52ef62
debug_symbols passed down to soure dir creator
...
The flag is now passed down to resource which creates the directory for
unpacking the source.
2022-07-31 19:59:25 +01:00
Rylan Polster
4cc0e854ce
Rename treat_as_*?
to simulating_or_running_on_*?
2022-07-28 09:18:16 -04:00
Max Eisner
dff3fc9d2f
fix symbol in SHELL env
2022-07-27 16:59:30 +02:00
Lukas Oberhuber
d195f22522
Connecting up --debug-symbols
flag
...
This connects the calling of dsymutil and the retention of temporary
files. Still need to connect compilation to flag.
2022-07-26 12:15:53 +01:00
Max Eisner
1c059e1da0
extend shell_parameter argument
2022-07-24 23:03:28 +02:00
Max Eisner
92bccd2074
apply naming suggestions
2022-07-24 22:54:28 +02:00
Max Eisner
9528c6a8ac
always set SHELL env variable
2022-07-24 22:50:14 +02:00
Rylan Polster
34a1bc6618
Use SimulateSystem
for ignore_missing_libraries
2022-07-23 03:09:29 +02:00
Rylan Polster
ed97281d20
Allow ignore_missing_libraries
when simulating Linux on macOS
2022-07-22 18:44:40 +02:00
Rylan Polster
f3e34230ad
Add --variations
option to brew info
2022-07-21 16:41:15 +02:00
Rylan Polster
eab3d077bc
Improvements
2022-07-21 15:32:51 +02:00
Rylan Polster
d4c4432f2d
Formula#to_hash
: include variations
key
2022-07-21 13:04:56 +02:00
apainintheneck
cb91f8b665
Add tests for retrieving formula based on dependents
...
Also, made sure to clear formula cache before
and after autoremoving packages.
2022-07-17 00:39:23 -07:00
apainintheneck
fe83500617
Moved autoremove logic into cleanup.rb and formula.rb
...
Cleanup.rb:
- Added #autoremove method
- #autoremove is called in clean when HOMEBREW_AUTOREMOVE is set
Formula.rb:
- Added #unused_formulae_with_no_dependents and helpers
Removed old autoremove.rb module.
2022-07-14 13:16:26 -07:00
apainintheneck
fa43418bfb
Moved autoremove logic into autoremove.rb
...
This allows us to call that logic internally in other brew
commands instead of having to shell out.
2022-07-13 16:31:41 -07:00
apainintheneck
74f1eca14c
autoremove.rb: moved logic out into formula.rb, and uninstall.rb
...
This allows us to autoremove formulae in the autoremove and
uninstall commands without having to shell out to brew.
2022-07-13 16:28:49 -07:00
Max Eisner
32b68838f9
switch to more flexible shell_prefix arg
2022-07-13 14:47:45 +02:00
Max Eisner
ad5a1a8138
add docs
2022-07-11 15:49:30 +02:00
Max Eisner
e5f2ddf012
add typecheck
2022-07-11 15:21:57 +02:00
Max Eisner
665e68a82f
switch to named args
2022-07-11 15:08:44 +02:00
Max Eisner
1dcfeb5516
fix style
2022-07-10 15:45:07 +02:00
Max Eisner
3483ee72d5
add DSL to generate completions
2022-07-10 15:35:28 +02:00
Rylan Polster
99447bb1c0
OnSystem
: provide ::MacOSAndLinux
and ::MacOSOnly
2022-06-30 12:57:35 -04:00
Rylan Polster
a9e62b9e38
include OnSystem
to define DSL methods
2022-06-29 11:38:55 -04:00
Rylan Polster
b538ce7361
Add OnSystem
module to generate on_*
methods for formulae and casks
2022-06-24 14:37:50 -04:00
Bo Anderson
02164a35db
Use ORIGINAL_PATHS over envs; reject nil PATH
2022-06-17 19:47:57 +01:00
Bo Anderson
e78665f4f7
Replace ENV["HOME"] with Dir.home
2022-06-17 19:47:57 +01:00
Rylan Polster
cff0122fc4
Remove unnecessary HOMEBREW_INSTALL_FROM_API checks
2022-06-15 16:35:50 -04:00
Mike McQuaid
1bb44979ee
Disable and delete code for 3.5.0
...
The next planned release will be 3.5.0 so let's fix things up for there.
2022-05-30 14:59:14 +01:00
EricFromCanada
2fdc70c3bf
desc, search: also search cask descriptions
2022-03-30 11:23:55 -04:00
Mike McQuaid
79891a7103
Update uses of Formula.all
/Cask::Cask.all
...
Add some `--all` flags we'll eventually migrate to to ensure that we'll
eventually require their usage to read all formulae. Where we need to
do stuff later, add some comments.
2022-03-08 19:24:56 +00:00