Skip to content

Commit

Permalink
feat(cli): ✨ Include token command on all command
Browse files Browse the repository at this point in the history
  • Loading branch information
SpiralOutDotEu committed Nov 2, 2023
1 parent 59124e5 commit 9501075
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/cli/commands/all.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
use crate::{utils::{command_runner::RealCommandRunner, filesystem_operations::RealFileSystemOps}, cli::AllCommand};
use crate::{
cli::AllCommand,
utils::{command_runner::RealCommandRunner, filesystem_operations::RealFileSystemOps},
};
use std::io;

use super::{circuit, compile, setup, verifier, movejs, proofs};
use super::{circuit, compile, movejs, proofs, setup, token, verifier};

pub fn handle_all_command(runner: RealCommandRunner, random_name: String, random_text: String, file_system_ops: RealFileSystemOps, all_command: AllCommand) -> Result<(), io::Error> {
pub fn handle_all_command(
runner: RealCommandRunner,
random_name: String,
random_text: String,
file_system_ops: RealFileSystemOps,
all_command: AllCommand,
) -> Result<(), io::Error> {
circuit::handle_circuit_subcommand()?;
compile::handle_compile_subcommand(&runner)?;
setup::handle_setup_subcommand(&runner, random_name.clone(), random_text.clone())?;
verifier::handle_verifier_subcommand(&runner)?;
token::handle_token_subcommand()?;
movejs::handle_movejs_subcommand(&file_system_ops)?;
proofs::handle_proofs_subcommand(&runner, &all_command.input_file, &file_system_ops)
.map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
Ok(())
}
}

0 comments on commit 9501075

Please sign in to comment.