make all commands pub(super)

This commit is contained in:
naskya 2024-06-21 13:22:43 +09:00
parent 2f6bfee5c7
commit b706cc894d
Signed by: naskya
GPG key ID: 712D413B3A9FED5C
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ pub(crate) enum ConfigError {
Validate(#[from] validate::ValidationError), Validate(#[from] validate::ValidationError),
} }
pub(crate) async fn run(command: Commands) -> Result<(), ConfigError> { pub(super) async fn run(command: Commands) -> Result<(), ConfigError> {
match command { match command {
Commands::Update { revision } => update::run(revision).await?, Commands::Update { revision } => update::run(revision).await?,
Commands::Validate => validate::run()?, Commands::Validate => validate::run()?,

View file

@ -27,7 +27,7 @@ enum Commands {
Config(config::Commands), Config(config::Commands),
} }
pub(crate) async fn run() -> Result<(), Error> { pub(super) async fn run() -> Result<(), Error> {
let args = Args::parse(); let args = Args::parse();
match args.command { match args.command {