-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dzejkop/bump semaphore (and fix CI) #770
Conversation
struct Args { | ||
#[clap(subcommand)] | ||
subcommand: Command, | ||
|
||
#[clap( | ||
short, | ||
long, | ||
env, | ||
default_value = "https://signup-orb-ethereum.crypto.worldcoin.dev" | ||
)] | ||
sequencer_url: String, | ||
|
||
#[clap(long, env)] | ||
basic_auth_username: Option<String>, | ||
|
||
#[clap(long, env)] | ||
basic_auth_password: Option<String>, | ||
|
||
/// The path to the file that will be used to store the identity | ||
#[clap(long, env)] | ||
identity_file: Option<PathBuf>, | ||
|
||
/// The path to the file that will be used to store the inclusion proof | ||
#[clap(long, env)] | ||
inclusion_proof_file: Option<PathBuf>, | ||
|
||
/// The path to the file that will be used to store the semaphore proof | ||
#[clap(long, env)] | ||
semaphore_proof_file: Option<PathBuf>, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks specific args are only used for certain commands. Consider using a similar approach to forge where each command has it's own set of args. The cli tool is pretty simple so this is not necessary, just a thought for consideration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of them are unique, but many are shared between commands. And putting them in the base command means that running ./tool --help
displays helpful information, if I put them in each subcommand then a user needs to run ./tool --help
followed by ./tool cmd --help
for relevant information
Bumps semaphore to newest with oxide branch merged.
Also adds a small CLI tool to do local proof generation and verification