-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): ✨ Add command
all
to run all the other commands end-2-end
- Loading branch information
1 parent
7f843a3
commit 25c0886
Showing
3 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
use crate::{utils::{command_runner::RealCommandRunner, filesystem_operations::RealFileSystemOps}, cli::AllCommand}; | ||
use std::io; | ||
|
||
use super::{circuit, compile, setup, verifier, movejs, proofs}; | ||
|
||
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)?; | ||
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(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ pub mod movejs; | |
pub mod proofs; | ||
pub mod setup; | ||
pub mod verifier; | ||
pub mod all; |