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 9 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
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 know ehuss mentioned making this a positional but I wonder if it should be an option instead, especially now that its optional. I see positionals like function parameters (in languages with named parameters): if the meaning isn't obvious by the position then it should be a named parameter.
Benefits
ownername
can usenum_args(1..)
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.
Do you mean to change ownername and crate name to options? I want to discuss:
.value_delimiter(',')
to add or delete multiple owners at one time;ownername
andcratename
are optional,cargo owner add/remove
will have no meaning;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 was thinking owners be a required positional and package name be an option that gets defaulted to the one for the parent directory.
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.
Now, crate name is an option.