Set up cargo workspace
This commit is contained in:
parent
ef65d75a08
commit
89d6006d8d
6 changed files with 21 additions and 5 deletions
|
|
@ -1,18 +0,0 @@
|
|||
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