radicle-tui 0.3.0

Radicle terminal user interface
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use log::LevelFilter;

use radicle::profile::Profile;

pub fn enable(profile: &Profile, cmd: &str, op: &str) -> Result<(), anyhow::Error> {
    let logfile = format!(
        "{}/rad-tui-{}-{}.log",
        profile.home().path().to_string_lossy(),
        cmd,
        op,
    );
    simple_logging::log_to_file(logfile, LevelFilter::Info)?;

    Ok(())
}