Function run

Source
pub fn run<I, T>(args: I) -> Result<()>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Expand description

Main entry point of the application

This function is the main entry point of the application. It parses the command line arguments, reads the configuration file, and then executes the appropriate subcommand.

§Arguments

  • args - The command line arguments to parse.

§Returns

Returns a Result with the result of the subcommand.

§Errors

Use anyhow::Result to handle errors.