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

Support cargo owner add #11879

Closed
wants to merge 42 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
786e0b6
Support cargo owner add
heisen-li Mar 23, 2023
9bef78d
Merge remote-tracking branch 'upstream/master' into owner
heisen-li Mar 23, 2023
5862698
Delete res.txt
heisen-li Mar 23, 2023
8914b1a
Update registry.rs
heisen-li Mar 23, 2023
6573a9e
Merge branch 'rust-lang:master' into owner
heisen-li Apr 2, 2023
baf3020
Added test cases and modified document descriptions.
heisen-li Apr 2, 2023
0ae910a
Merge remote-tracking branch 'upstream/owner' into owner
heisen-li Apr 2, 2023
efaf17b
fix doc
heisen-li Apr 2, 2023
6037751
Merge branch 'rust-lang:master' into owner
heisen-li Apr 3, 2023
3a99929
fix some problem
heisen-li Apr 4, 2023
1423140
Merge remote-tracking branch 'upstream/owner' into owner
heisen-li Apr 4, 2023
a2a59ea
Revised based on review comments
heisen-li Apr 4, 2023
08be20f
Use enumerate and move parameters to subcommands
heisen-li Apr 10, 2023
e038e62
fix
heisen-li Apr 16, 2023
21afbcf
fix
heisen-li Apr 16, 2023
1ef930f
Remove some test cases.
heisen-li Apr 16, 2023
a8b46be
update
heisen-li Nov 2, 2023
33ca2b8
update
heisen-li Nov 2, 2023
daaa8c1
delete file
heisen-li Nov 2, 2023
fc7987e
update tests
heisen-li Nov 2, 2023
5a988dd
Merge remote-tracking branch 'origin/owner' into owner
heisen-li Nov 2, 2023
3fc6b53
fix some error
heisen-li Nov 2, 2023
1dc82ae
add some test & fix some error
heisen-li Nov 3, 2023
415bbf6
fix conflicts
heisen-li Nov 13, 2023
60ebb2a
add doc man
heisen-li Nov 20, 2023
3fa434d
modify
heisen-li Nov 21, 2023
3678dff
Merge branch 'rust-lang:master' into owner
heisen-li Nov 23, 2023
7acc02f
fix test and some
heisen-li Nov 25, 2023
bd2f6ef
Merge branch 'owner' of https://github.com/heisen-li/cargo into owner
heisen-li Nov 25, 2023
13fccb2
fix test
heisen-li Nov 25, 2023
bf304aa
modify the code by comments
heisen-li Dec 12, 2023
97d2596
resolve conflict
heisen-li Dec 12, 2023
0987b72
resolve conflict
heisen-li Dec 12, 2023
05c1653
resolve conflict
heisen-li Dec 12, 2023
1bc57c7
Merge branch 'owner' of https://github.com/heisen-li/cargo into owner
heisen-li Dec 12, 2023
b722762
fix failed test
heisen-li Dec 12, 2023
01701f7
fix failed tests
heisen-li Dec 12, 2023
9f7e9bd
fix failed tests
heisen-li Dec 12, 2023
b01c084
Merge branch 'owner' of https://github.com/heisen-li/cargo into owner
heisen-li Dec 12, 2023
3e1914e
fix tests
heisen-li Dec 12, 2023
6d2b554
zsh completions
heisen-li Dec 20, 2023
48b5429
fix conflict
heisen-li Jan 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
resolve conflict
heisen-li committed Dec 12, 2023
commit 0987b723fdf8f8434703ae42a9da6a93b7e91708
7 changes: 3 additions & 4 deletions src/bin/cargo/commands/owner.rs
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ pub fn cli() -> Command {
.value_delimiter(',')
.value_name("OWNER_NAME")
.hide(true)
.help("Name of the owner you want to invite")
.help("Name of the owner you want to invite"),
)
.args(add_registry_args())
.override_usage(color_print::cstr!(
@@ -52,7 +52,7 @@ pub fn cli() -> Command {
.value_delimiter(',')
.value_name("OWNER_NAME")
.hide(true)
.help("Name of the owner you want to remove")
.help("Name of the owner you want to remove"),
)
.args(add_registry_args())
.override_usage(color_print::cstr!(
@@ -76,8 +76,7 @@ pub fn cli() -> Command {

fn add_registry_args() -> [Arg; 4] {
[
opt("crate", "Crate name that you want to manage the owner")
.value_name("CRATE_NAME"),
opt("crate", "Crate name that you want to manage the owner").value_name("CRATE_NAME"),
opt("index", "Registry index URL to modify owners for")
.value_name("INDEX")
.conflicts_with("registry"),