Skip to content

Commit

Permalink
add docstrings for new cli run functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Esgrove committed Oct 29, 2024
1 parent 9cbc3c4 commit 0fbbe6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions rust/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ enum Command {
},
}

/// Run Vault CLI with the given arguments
pub async fn run_cli_with_args(args: Vec<String>) -> Result<()> {
let args = Args::parse_from(args);
let quiet = args.quiet;
Expand All @@ -272,6 +273,7 @@ pub async fn run_cli_with_args(args: Vec<String>) -> Result<()> {
Ok(())
}

/// Run Vault CLI
pub async fn run_cli() -> Result<()> {
let args = Args::parse();
let quiet = args.quiet;
Expand Down
2 changes: 1 addition & 1 deletion rust/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[tokio::main]
async fn main() -> anyhow::Result<()> {
nitor_vault::args::run_cli().await
nitor_vault::run_cli().await
}

0 comments on commit 0fbbe6a

Please sign in to comment.