36 Commits

Author SHA1 Message Date
Mike McQuaid
d69c3ef3df
Vendor more gems
Let's resolve the intermittent issues we've seen when various installed
on demand gems cannot be installed by including them all in the
Gemfile.
2023-03-28 09:12:48 +01:00
Douglas Eichelberger
0b04b99e68 brew typecheck --suggest-typed --update 2023-03-09 20:32:46 -08:00
apainintheneck
d216b3355d cmd/prof: improve error messages
- Provide an error message when the command is unknown.
- Suggest running the command again with `--` if there
  is an invalid option which might have been meant for
  a subcommand.
2023-02-16 18:51:08 -08:00
apainintheneck
3a35ea3e28 Set ruby-prof to v1.4.3
This is the last version of this gem that supports
Ruby 2.6.x. We can stop passing the explicit version
when we move to a newer version of Ruby.
2022-12-29 12:48:13 -08:00
Bo Anderson
a54b7a8c15
dev-cmd/prof: use HOMEBREW_RUBY_EXEC_ARGS 2022-11-05 04:18:13 +00:00
Bo Anderson
0a1762bd14
Use RUBY_PATH and HOMEBREW_RUBY_EXEC_ARGS more universally 2022-06-17 19:47:56 +01:00
Dustin Rodrigues
68246e48c7
prof: allow to run on Apple Silicon 2021-04-27 00:09:45 -04:00
Dustin Rodrigues
511fcee1d7
dev-cmd/prof: prevent from running on Apple Silicon 2021-02-24 09:03:50 -05:00
Jonathan Chang
6c2d357c0e prof: needs at least 1 argument 2021-02-14 20:50:15 +11:00
Mike McQuaid
23b64f82c9
dev-cmd/prof: allow non-zero exit code.
Want to ensure that we still write profiling data even if the Homebrew
command fails.
2021-02-01 17:08:37 +00:00
Rylan Polster
7f23b55c5e
Cleanup command descriptions
Don't have a period within first full sentence of the description
2021-01-25 13:46:35 -05:00
Rylan Polster
d1f3e39b7b
Update commands to generate usage banner 2021-01-18 21:20:11 -05:00
Mike McQuaid
668073dfe3
Merge pull request #10280 from hyuraku/cmd/commands_add_only_bash_command_list
cmd/prof: raise error when cmd is bash file
2021-01-18 14:25:21 +00:00
Rylan Polster
da811373d3 Add named_args DSL for commands 2021-01-13 17:09:42 -05:00
hyuraku
c56fff3928 cmd/prof: raise error when cmd is bash file 2021-01-11 21:01:45 +09: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
Mike McQuaid
a4d0174d7b
prof: improve brew prof functionality.
- Add `--stackprof` to allow using stackprof
- Use the latest version of `ruby-prof`
- Automatically open the generated HTML output
2020-08-20 13:01:58 +01:00
Bo Anderson
10f2a50256 dev-cmd/prof: improve arg passing 2020-08-03 12:29:22 +01:00
EricFromCanada
9d6eb41fc5 cmd/dev-cmd: misc. usage and wording fixes 2020-04-19 13:31:54 -04:00
Mike McQuaid
4b30a61732
prof: use ruby-prof 0.18.0
This is the newest version that works with Ruby 2.3.

Also, update the `.gitignore` to hide it while we're here.
2019-09-11 13:57:20 +01:00
EricFromCanada
6520785307 manpages: grammar fixes 2019-08-20 08:26:26 -04: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
Mike McQuaid
70b93f65ea
*cmd/*: use *system instead of exec for easier testing.
This improves both test coverage, makes it easier to use a profiler and
a debugger.
2019-03-27 21:15:24 +00:00
Mike McQuaid
aa44509be9
Test dev-cmd *_args methods
Also, add a few missing invocations.
2019-03-27 13:35:42 +00: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
bbea109926
dev-cmd: remove --help headers and tweak docs. 2019-01-30 21:39:28 +00:00
EricFromCanada
388781f6a7 dev-cmd/: remove colons from command specs.
These aren't needed when converting Parser-based help text to man page or Markdown formats.
Includes regenerated docs.
2018-10-19 13:12:55 -04:00
EricFromCanada
63b3d400e0 dev-cmd/: add Parser-based help text for remaining commands.
`brew ruby` now accepts only `-e`, verbose, and debug arguments.
2018-10-19 13:12:55 -04:00
Gautham Goli
7b0f27ca39
style: Fix style errors 2018-10-03 19:49:46 +05:30
Gautham Goli
604dfb4ae6
help: Let OptionParser generate help text for supported commands 2018-10-03 19:49:45 +05:30
Gautham Goli
446b1cb9e3
man: Seperate global options into a section 2018-10-03 19:49:45 +05:30
Gautham Goli
e0e876cf37
man: Make command heading H3 2018-10-03 19:49:44 +05:30
Markus Reiter
771cf49352 Remove executable bit from ruby.rb and prof.rb. 2018-08-08 21:13:57 +02:00
Mike McQuaid
6302da37f6 Add prof and ruby commands.
These are imported from Homebrew/homebrew-dev-tools and are both used by
maintainers so may be useful for contributors too.
2018-02-27 12:07:30 +00:00