mirror of
https://github.com/msfjarvis/gitice
synced 2025-08-15 09:37:00 +05:30
fix: replace pub(crate)
with pub
This commit is contained in:
parent
a728a353d6
commit
5b3ec8a1b0
5 changed files with 19 additions and 20 deletions
16
src/cli.rs
16
src/cli.rs
|
@ -2,32 +2,32 @@ use clap::Parser;
|
|||
|
||||
#[derive(Parser)]
|
||||
#[command(author, version, about)]
|
||||
pub(crate) struct Opts {
|
||||
pub struct Opts {
|
||||
#[command(subcommand)]
|
||||
pub(crate) subcommand: SubCommand,
|
||||
pub subcommand: SubCommand,
|
||||
}
|
||||
|
||||
#[derive(Parser)]
|
||||
pub(crate) enum SubCommand {
|
||||
pub enum SubCommand {
|
||||
Freeze(Freeze),
|
||||
Thaw(Thaw),
|
||||
}
|
||||
|
||||
/// recursively find git repos and record their states into a lockfile
|
||||
#[derive(Parser)]
|
||||
pub(crate) struct Freeze {
|
||||
pub struct Freeze {
|
||||
/// directory to search and freeze repos from.
|
||||
pub(crate) directory: String,
|
||||
pub directory: String,
|
||||
}
|
||||
|
||||
/// takes the given lockfile and clones them back into the given directory
|
||||
#[derive(Parser)]
|
||||
pub(crate) struct Thaw {
|
||||
pub struct Thaw {
|
||||
/// directory to put cloned repos into.
|
||||
pub(crate) directory: String,
|
||||
pub directory: String,
|
||||
/// the lockfile to restore repositories from.
|
||||
#[arg(default_value = "gitice.lock")]
|
||||
pub(crate) lockfile: String,
|
||||
pub lockfile: String,
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue