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

Add rustup component subcommand #658

Closed
brson opened this issue Aug 16, 2016 · 2 comments
Closed

Add rustup component subcommand #658

brson opened this issue Aug 16, 2016 · 2 comments

Comments

@brson
Copy link
Contributor

brson commented Aug 16, 2016

The generalized version of rustup target. This command will allow the rust-src package to be installed once rust-lang-deprecated/rust-buildbot#102 lands. One complication here is that the rust-src package has a target equal to "*" in the manifests.

I think the way this might work is rustup component add defaults to the host target, which can resolve to "*". That way you can write rustup component add rust-src.

The command might have the same set of subcommands as rustup target, and e.g. add might look like

rustup.exe-component-add
Add a component to a Rust toolchain

USAGE:
    rustup.exe component add [OPTIONS] <component>

FLAGS:
    -h, --help    Prints help information

OPTIONS:
        --toolchain <toolchain>
        --target <target>

ARGS:
    <target>
@brson
Copy link
Contributor Author

brson commented Aug 16, 2016

cc @Diggsey

@Diggsey
Copy link
Contributor

Diggsey commented Aug 16, 2016

When you say it "resolves to *", do you mean that it will do a reverse match and * will match any target specifier?

Sounds good, although we're getting a lot of subcommands 😛 We might have to start showing a reduced help text with only the key features by default to avoid overwhelming users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants