Skip to main content

blackbox_generator/
select_command.rs

1use anyhow::Result;
2
3use std::path::PathBuf;
4
5use crate::init::{
6    initialize_solana_working_folder,
7    initialize_ethereum_working_folder,
8};
9use crate::opt::{
10    InitSubcommands,
11};
12
13pub fn command_init(actual_path: PathBuf, subcommands: InitSubcommands ) -> Result<()> {
14    match subcommands{
15        InitSubcommands::Solana {name} => initialize_solana_working_folder(actual_path, name),
16        InitSubcommands::Ethereum {name} => initialize_ethereum_working_folder(actual_path, name),
17    }
18}
19
20pub fn command_verify() -> Result<()>{
21    todo!();
22}
23
24pub fn command_config() -> Result<()>{
25    todo!();
26}
27
28pub fn command_edit() -> Result<()>{
29    todo!();
30}
31
32pub fn command_generate() -> Result<()>{
33    todo!();
34}
35
36pub fn command_rarity() -> Result<()>{
37    todo!();
38}