forked from rust-lang/cargo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
128 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use cargo_test_support::curr_dir; | ||
use cargo_test_support::prelude::*; | ||
|
||
#[cargo_test] | ||
fn case() { | ||
snapbox::cmd::Command::cargo_ui() | ||
.arg("owner") | ||
.arg("add") | ||
.arg("--help") | ||
.assert() | ||
.success() | ||
.stdout_matches_path(curr_dir!().join("stdout.log")) | ||
.stderr_matches_path(curr_dir!().join("stderr.log")); | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Name of a user or team to invite as an owner | ||
|
||
Usage: cargo owner add <OWNER_NAME> [CRATE_NAME] [OPTIONS] | ||
|
||
Arguments: | ||
<OWNER_NAME> Name of the owner you want to invite | ||
[CRATE_NAME] Crate name that you want to manage the owner | ||
|
||
Options: | ||
--index <INDEX> Registry index URL to modify owners for | ||
--registry <REGISTRY> Registry to modify owners for | ||
--token <TOKEN> API token to use when authenticating | ||
-v, --verbose... Use verbose output (-vv very verbose/build.rs output) | ||
--color <WHEN> Coloring: auto, always, never | ||
--config <KEY=VALUE> Override a configuration value | ||
-Z <FLAG> Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details | ||
-h, --help Print help | ||
|
||
Manifest Options: | ||
--frozen Require Cargo.lock and cache are up to date | ||
--locked Require Cargo.lock is up to date | ||
--offline Run without accessing the network |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use cargo_test_support::curr_dir; | ||
use cargo_test_support::prelude::*; | ||
|
||
#[cargo_test] | ||
fn case() { | ||
snapbox::cmd::Command::cargo_ui() | ||
.arg("owner") | ||
.arg("list") | ||
.arg("--help") | ||
.assert() | ||
.success() | ||
.stdout_matches_path(curr_dir!().join("stdout.log")) | ||
.stderr_matches_path(curr_dir!().join("stderr.log")); | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
List owners of a crate | ||
|
||
Usage: cargo owner list [CRATE_NAME] [OPTIONS] | ||
|
||
Arguments: | ||
[CRATE_NAME] Crate name which you want to list all owner names | ||
|
||
Options: | ||
--index <INDEX> Registry index URL to modify owners for | ||
--registry <REGISTRY> Registry to modify owners for | ||
--token <TOKEN> API token to use when authenticating | ||
-v, --verbose... Use verbose output (-vv very verbose/build.rs output) | ||
--color <WHEN> Coloring: auto, always, never | ||
--config <KEY=VALUE> Override a configuration value | ||
-Z <FLAG> Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details | ||
-h, --help Print help | ||
|
||
Manifest Options: | ||
--frozen Require Cargo.lock and cache are up to date | ||
--locked Require Cargo.lock is up to date | ||
--offline Run without accessing the network |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
mod add_help; | ||
mod help; | ||
mod list_help; | ||
mod remove_help; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use cargo_test_support::curr_dir; | ||
use cargo_test_support::prelude::*; | ||
|
||
#[cargo_test] | ||
fn case() { | ||
snapbox::cmd::Command::cargo_ui() | ||
.arg("owner") | ||
.arg("remove") | ||
.arg("--help") | ||
.assert() | ||
.success() | ||
.stdout_matches_path(curr_dir!().join("stdout.log")) | ||
.stderr_matches_path(curr_dir!().join("stderr.log")); | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Name of a user or team to remove as an owner | ||
|
||
Usage: cargo owner remove <OWNER_NAME> [CRATE_NAME] [OPTIONS] | ||
|
||
Arguments: | ||
<OWNER_NAME> Name of the owner you want to remove | ||
[CRATE_NAME] Crate name that you want to manage the owner | ||
|
||
Options: | ||
--index <INDEX> Registry index URL to modify owners for | ||
--registry <REGISTRY> Registry to modify owners for | ||
--token <TOKEN> API token to use when authenticating | ||
-v, --verbose... Use verbose output (-vv very verbose/build.rs output) | ||
--color <WHEN> Coloring: auto, always, never | ||
--config <KEY=VALUE> Override a configuration value | ||
-Z <FLAG> Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details | ||
-h, --help Print help | ||
|
||
Manifest Options: | ||
--frozen Require Cargo.lock and cache are up to date | ||
--locked Require Cargo.lock is up to date | ||
--offline Run without accessing the network |