Add repo add and repo show commands

This commit is contained in:
Joscha 2025-04-30 00:49:04 +02:00
parent b922af9283
commit 2c5ff584db
10 changed files with 219 additions and 4 deletions

View file

@ -0,0 +1,22 @@
mod add;
mod show;
use clap::Parser;
use crate::Environment;
/// Perform repo operations.
#[derive(Debug, Parser)]
pub enum Command {
Show(show::Command),
Add(add::Command),
}
impl Command {
pub fn run(self, env: &Environment) -> anyhow::Result<()> {
match self {
Self::Show(command) => command.run(env),
Self::Add(command) => command.run(env),
}
}
}