Implement init command
This commit is contained in:
parent
1441b83a14
commit
ef65d75a08
5 changed files with 1914 additions and 14 deletions
18
src/commands.rs
Normal file
18
src/commands.rs
Normal 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),
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue