mirror of
https://github.com/msfjarvis/gitice
synced 2025-08-14 11:47:01 +05:30
19 lines
401 B
Rust
19 lines
401 B
Rust
pub(crate) mod cli;
|
|
pub(crate) mod git;
|
|
pub(crate) mod model;
|
|
|
|
use clap::Parser;
|
|
use cli::{Opts, SubCommand};
|
|
use git::freeze_repos;
|
|
use git::thaw_repos;
|
|
|
|
fn main() -> anyhow::Result<()> {
|
|
let opts = Opts::parse();
|
|
|
|
match opts.subcommand {
|
|
SubCommand::Freeze(p) => freeze_repos(&p.directory)?,
|
|
SubCommand::Thaw(p) => thaw_repos(&p.directory, &p.lockfile)?,
|
|
}
|
|
|
|
Ok(())
|
|
}
|