[−][src]Function vdot::run
pub fn run(args: Args) -> Result<(), Error>
Use the given command line arguments to run vdot.
Examples
use log::error; use std::process; use vdot::Args; let args = Args { paths: vec![], vault_token: "hunter2".to_string(), vault_address: url::Url::parse("http://127.0.0.1:8200").unwrap(), command: None, verbose: 0 }; if let Err(err) = vdot::run(args) { error!("{}", err); process::exit(1); }
Errors
Returns an error if anything goes wrong, and exits the process with a status code of 1.