fix: replace pub(crate) with pub

This commit is contained in:
Harsh Shandilya 2023-05-12 10:46:58 +05:30
parent a728a353d6
commit 5b3ec8a1b0
No known key found for this signature in database
5 changed files with 19 additions and 20 deletions

View file

@ -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)]