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.
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
Support
cargo owner add
#11879Support
cargo owner add
#11879Changes from 30 commits
786e0b6
9bef78d
5862698
8914b1a
6573a9e
baf3020
0ae910a
efaf17b
6037751
3a99929
1423140
a2a59ea
08be20f
e038e62
21afbcf
1ef930f
a8b46be
33ca2b8
daaa8c1
fc7987e
5a988dd
3fc6b53
1dc82ae
415bbf6
60ebb2a
3fa434d
3678dff
7acc02f
bd2f6ef
13fccb2
bf304aa
97d2596
0987b72
05c1653
1bc57c7
b722762
01701f7
9f7e9bd
b01c084
3e1914e
6d2b554
48b5429
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Something we've not talked about is the stabilization plan.
Options
-Zunstable-options
and stabilize laterAnother benefit to stabilizing later is we can re-evaluate this command to see if there are any "breaking" changes we want to make. For example, would we want
add
andremove
to be dry-run by default?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.
I am learning the operating rules of the community and I can cooperate with your decisions.
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.
I'm mixed about whether
cargo owner
should show--help
or should default tocargo owner list
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.
I don't think any results should be shown without explicit user action.
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.
A lot of CLIs default a command to list. However, since this is a network operation, I can see foregoing that. As this is an error, we can change it in the future.
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.
I assume this is meant to operate for
None
. We should separate outSome(_)
and panic for it as we should only get the subcommands back we defined.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.
If there are no subcommands or any parameters(like:
--add
,..), an error message will be displayed instead of panic.https://github.com/rust-lang/cargo/pull/11879/files#diff-981bc8fd9f47eff85de2c539a5be58b0002e2f060064a090218060c5ae3e5722R114-R122
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.
I suspect these will let us complete the subcommand names but not the arguments underneath? Or if they do, it'll report all the arguments underneath?
Unfortunately, it looks like zsh completions are missing
cargo report future-incompat
completions for us to copy fromThere 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.
Command completion for zsh is a bit difficult for me and I'm learning how to accomplish this.
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.
I've tried to finish. In addition, whether
cargo report future-incompat
should be corrected in the new issue.