fn run_command(opts: Arguments) -> OpResult {
    let paths = lorri::ops::get_paths()?;
    match opts.command {
        Command::Info => info::main(&Project::new(&get_shell_nix()?, paths.gc_root_dir())),

        Command::Build => build::main(&Project::new(&get_shell_nix()?, paths.gc_root_dir())),

        Command::Direnv => direnv::main(&Project::new(&get_shell_nix()?, paths.gc_root_dir())),

        Command::Shell => shell::main(Project::new(&get_shell_nix()?, paths.gc_root_dir())),

        Command::Watch => watch::main(&Project::new(&get_shell_nix()?, paths.gc_root_dir())),

        Command::Daemon => daemon::main(),

        Command::Upgrade(args) => upgrade::main(args),

        // TODO: remove
        Command::Ping_(p) => ping::main(p.nix_file),

        Command::Init => init::main(TRIVIAL_SHELL_SRC, DEFAULT_ENVRC),
    }
}
/// Run the main function of the relevant command.
Run the main function of the relevant command.
Run the main function of the relevant command .
fn run_command(opts: Arguments) -> OpResult {
    let paths = lorri::ops::get_paths()?;
    match opts.command {
        Command::Info => info::main(&Project::new(&get_shell_nix()?, paths.gc_root_dir())),
        Command::Build => build::main(&Project::new(&get_shell_nix()?, paths.gc_root_dir())),
        Command::Direnv => direnv::main(&Project::new(&get_shell_nix()?, paths.gc_root_dir())),
        Command::Shell => shell::main(Project::new(&get_shell_nix()?, paths.gc_root_dir())),
        Command::Watch => watch::main(&Project::new(&get_shell_nix()?, paths.gc_root_dir())),
        Command::Daemon => daemon::main(),
        Command::Upgrade(args) => upgrade::main(args),
        // TODO: remove
        Command::Ping_(p) => ping::main(p.nix_file),
        Command::Init => init::main(TRIVIAL_SHELL_SRC, DEFAULT_ENVRC),
    }
}
fn run_command ( opts : Arguments ) -> OpResult { let paths = lorri :: ops :: get_paths ( ) ? ; match opts . command { Command :: Info => info :: main ( & Project :: new ( & get_shell_nix ( ) ? , paths . gc_root_dir ( ) ) ) , Command :: Build => build :: main ( & Project :: new ( & get_shell_nix ( ) ? , paths . gc_root_dir ( ) ) ) , Command :: Direnv => direnv :: main ( & Project :: new ( & get_shell_nix ( ) ? , paths . gc_root_dir ( ) ) ) , Command :: Shell => shell :: main ( Project :: new ( & get_shell_nix ( ) ? , paths . gc_root_dir ( ) ) ) , Command :: Watch => watch :: main ( & Project :: new ( & get_shell_nix ( ) ? , paths . gc_root_dir ( ) ) ) , Command :: Daemon => daemon :: main ( ) , Command :: Upgrade ( args ) => upgrade :: main ( args ) , // TODO: remove Command :: Ping_ ( p ) => ping :: main ( p . nix_file ) , Command :: Init => init :: main ( TRIVIAL_SHELL_SRC , DEFAULT_ENVRC ) , } }
Run the main function of the relevant command.
Run the main function of the relevant command .
opts
Arguments
opts
Arguments