feat: can create root
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-05-10 22:47:32 +02:00
parent c54fc3f4d0
commit 442ab64583
5 changed files with 36 additions and 1 deletions

View File

@@ -28,6 +28,11 @@ enum Commands {
},
Info {},
CreateRoot {
#[arg(long)]
name: String,
},
ClearLock {},
}
@@ -103,6 +108,12 @@ pub async fn execute() -> anyhow::Result<()> {
println!("{}", output);
}
},
Some(Commands::CreateRoot { name }) => {
state
.commander
.execute(commander::Command::CreateRoot { root: name })?;
println!("Root was successfully created, now run:\n\n$ hyperlog");
}
Some(Commands::Info {}) => {
println!("graph stored at: {}", state.storage.info()?)
}