Implement init command

This commit is contained in:
Joscha 2025-01-14 01:40:27 +01:00
parent 1441b83a14
commit ef65d75a08
5 changed files with 1914 additions and 14 deletions

18
src/commands.rs Normal file
View file

@ -0,0 +1,18 @@
mod init;
use clap::Parser;
use crate::Environment;
#[derive(Debug, Parser)]
pub enum Command {
Init(init::Command),
}
impl Command {
pub fn run(self, env: &Environment) -> anyhow::Result<()> {
match self {
Self::Init(command) => command.run(env),
}
}
}