Skip to main content

run

Function run 

Source
pub fn run() -> ExitCode
Expand description

Parses std::env::args, dispatches the subcommand, and maps the result to the process exit code (success → 0, error → 1 after printing the error chain to stderr).

This is the whole public surface: the snapdir binary’s main is fn main() -> ExitCode { snapdir_cli::run() }.