Skip to content
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

Refactor command definition #6894

Merged
merged 1 commit into from
May 1, 2019
Merged

Conversation

k-nasa
Copy link
Contributor

@k-nasa k-nasa commented May 1, 2019

  • Removed call 'about'
  • Changed the string "cargo" to use crate_name

@rust-highfive
Copy link

r? @nrc

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 1, 2019
@@ -184,14 +184,13 @@ fn execute_subcommand(config: &mut Config, args: &ArgMatches<'_>) -> CliResult {
}

fn cli() -> App {
App::new("cargo")
App::new(clap::crate_name!())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why make this change? ISTM this should be the name of the application, not the name of the crate?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. I fixed it.

@nrc
Copy link
Member

nrc commented May 1, 2019

@bors r+

Thanks!

@bors
Copy link
Collaborator

bors commented May 1, 2019

📌 Commit 1577efa has been approved by nrc

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 1, 2019
@bors
Copy link
Collaborator

bors commented May 1, 2019

⌛ Testing commit 1577efa with merge a6737f5...

bors added a commit that referenced this pull request May 1, 2019
Refactor command definition

- Removed call 'about'
- Changed the string "cargo" to use crate_name
@bors
Copy link
Collaborator

bors commented May 1, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: nrc
Pushing a6737f5 to master...

@bors bors merged commit 1577efa into rust-lang:master May 1, 2019
@k-nasa k-nasa deleted the refactor_cli_definition branch May 1, 2019 09:38
bors added a commit to rust-lang/rust that referenced this pull request May 7, 2019
Update cargo

12 commits in beb8fcb5248dc2e6aa488af9613216d5ccb31c6a..759b6161a328db1d4863139e90875308ecd25a75
2019-04-30 23:58:00 +0000 to 2019-05-06 20:47:49 +0000
- Small things (rust-lang/cargo#6910)
- Fix skipping over invalid registry packages (rust-lang/cargo#6912)
- Fixes rust-lang/cargo#6874 (rust-lang/cargo#6905)
- doc: Format examples of version to ease reading (rust-lang/cargo#6907)
- fix more typos (codespell) (rust-lang/cargo#6903)
- Parse less JSON on null builds (rust-lang/cargo#6880)
- chore: Update opener to 0.4 (rust-lang/cargo#6902)
- Update documentation for auto-discovery. (rust-lang/cargo#6898)
- Update some doc links. (rust-lang/cargo#6897)
- Default Cargo.toml template provide help for completing the metadata (rust-lang/cargo#6881)
- Run 'cargo fmt --all' (rust-lang/cargo#6896)
- Refactor command definition (rust-lang/cargo#6894)
@ehuss ehuss added this to the 1.36.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants