mirror of
https://github.com/msfjarvis/gitice
synced 2025-08-14 20:57:01 +05:30
21 lines
436 B
Rust
21 lines
436 B
Rust
#![feature(let_chains)]
|
|
pub mod cli;
|
|
pub mod git;
|
|
pub mod logging;
|
|
pub mod model;
|
|
|
|
use clap::Parser;
|
|
use cli::{Opts, SubCommand};
|
|
use git::{freeze_repos, thaw_repos};
|
|
|
|
fn main() -> anyhow::Result<()> {
|
|
logging::init()?;
|
|
let opts = Opts::parse();
|
|
|
|
match opts.subcommand {
|
|
SubCommand::Freeze(p) => freeze_repos(&p.directory)?,
|
|
SubCommand::Thaw(p) => thaw_repos(&p.directory, &p.lockfile)?,
|
|
}
|
|
|
|
Ok(())
|
|
}
|