30 Commits
Author SHA1 Message Date
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 McQuaidandGitHub 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