]> git.proxmox.com Git - cargo.git/commitdiff
Add docs on how cargo-credential finds the action argument.
authorEric Huss <eric@huss.org>
Fri, 4 Dec 2020 19:21:16 +0000 (11:21 -0800)
committerEric Huss <eric@huss.org>
Sun, 6 Dec 2020 19:41:12 +0000 (11:41 -0800)
crates/credential/cargo-credential/src/lib.rs

index ae30b87d633815702c30ccbbfabb18b006798f6d..43dc0ba317635da859b39448658f129070baf503 100644 (file)
@@ -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>;