mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Add docs on how cargo-credential finds the action argument.
This commit is contained in:
parent
8ac04d1e63
commit
37e9c77a33
@ -8,6 +8,11 @@
|
||||
//! cargo_credential::main(MyCredential);
|
||||
//! }
|
||||
//! ```
|
||||
//!
|
||||
//! This will determine the action to perform (get/store/erase) by looking at
|
||||
//! the CLI arguments for the first argument that does not start with `-`. It
|
||||
//! will then call the corresponding method of the trait to perform the
|
||||
//! requested action.
|
||||
|
||||
pub type Error = Box<dyn std::error::Error>;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user