run

Function run 

Source
pub fn run<S, F>(cli: Cli, storage_factory: F) -> Result<RunResult>
where S: Storage, F: FnOnce() -> Result<S, StorageError>,
Expand description

Run the CLI with a storage factory.

The factory is only called when a command needs storage. Returns RunResult::RunTui when the TUI should be launched (caller handles this).