rs-hop 0.2.0

Fuzzy-finder TUI to jump between git repositories and folders
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Binary entry point: parse the command line, install file logging and
//! dispatch. All logic lives in the `hop` library crate.

use std::process::ExitCode;

use clap::Parser;
use hop::cli::{self, Cli};
use hop::util::{logging, paths};
use log::LevelFilter;

fn main() -> ExitCode {
    let cli = Cli::parse();
    // A TUI owns the terminal, so diagnostics go to a file, never stderr.
    let _ = logging::init(LevelFilter::Info, Some(&paths::log_file()));
    cli::run(cli)
}