-
Notifications
You must be signed in to change notification settings - Fork 168
Overhaul the collector CLI
#687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Mark-Simulacrum
merged 6 commits into
rust-lang:master
from
nnethercote:overhaul-the-collector-CLI
Jul 16, 2020
Merged
Overhaul the collector CLI
#687
Mark-Simulacrum
merged 6 commits into
rust-lang:master
from
nnethercote:overhaul-the-collector-CLI
Jul 16, 2020
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
Author
|
@Mark-Simulacrum: in your will need to change to this: And this line: will need to change to this: |
Member
Mark-Simulacrum
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Left some comments, but looks good to merge with them resolved.
0584d20 to
cd66984
Compare
So that it matches `--exclude`.
- Always use all-caps for the `@arg` key.
- Make sure the `@arg` key matches the option name.
- Only use the `--("foo")` form when necessary.
This commit makes the following changes to the invocation and behaviour of subcommands. `bench_local` - rustc is given via a positional argument. - Cargo is now found via `rustup which cargo` by default. - rustdoc is now looked for next to rustc by default. - The default database is now `results.db`. - `--db`, `--include`, `--exclude`, `--self-profile` are now given after the subcommand name. `bench_published` - The default database is now `results.db`. - `--db` is now given after the subcommand name. `bench_test` - The default database is now `results.db`. - `--db`, `--include`, `--exclude` are now given after the subcommand name. `profile` - Renamed as `profile_local`. - `--output` option renamed as `--out-dir`. - Cargo and rustdoc finding behaviour is the same as for `bench_local`. - The default output dir is now `results/`. - `--include`, `--exclude` are now given after the subcommand name. - Checks for rustdoc being present when a `Doc` build is requested. (Previously this check was only done for a `bench_local` run.) `process` - Renamed as `bench_next`. - The default database is now `results.db`. - `--db`, `--self-profile` are now given after the subcommand name. - Now has a `SITE_URL` positional argument instead of accessing the `$SITE_URL` env var. The commit also improves some error messages, e.g.: - by using `.with_context()` in a few places; - by making `get_pkgid()` return a `Result` instead of panicking; - by printing "collector error:" as a prefix on error messages.
These can be handled by generic `anyhow` errors.
It's currently 7 spaces, but should be 8.
cd66984 to
1fd100d
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes #683.
Here is a summary of the new subcommand names, arguments, and options.