pub fn run(config: &Config) -> Result<String, Box<dyn Error>>
Expand description
Runs the configured password generation
Parameter:
config
- AConfig
that contains the configuration for the function.
§Errors
This function can return errors if /dev/urandom
does not exist.
§Example
let config = match Config::build(args) {
Ok(config) => config,
Err(error) => panic!("Failed to build `Config`: {}", error),
};
genpass3::run(&config);