-
Notifications
You must be signed in to change notification settings - Fork 1
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
chore: adding CLI interface #22
Conversation
38f5856
to
6c3b2a9
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #22 +/- ##
==========================================
- Coverage 22.36% 19.10% -3.27%
==========================================
Files 7 7
Lines 76 89 +13
Branches 76 89 +13
==========================================
Hits 17 17
- Misses 59 72 +13 ☔ View full report in Codecov by Sentry. |
6c3b2a9
to
fe43bf7
Compare
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.
Reviewable status: 0 of 5 files reviewed, 1 unresolved discussion (waiting on @amosStarkware, @nimrod-starkware, and @TzahiTaub)
a discussion (no related file):
based on this
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.
Reviewable status: 0 of 5 files reviewed, 1 unresolved discussion (waiting on @amosStarkware, @nimrod-starkware, and @TzahiTaub)
crates/committer/Cargo.toml
line 17 at r3 (raw file):
[dependencies] starknet-types-core = "0.0.11" starknet_api = "0.12.0-dev.0"
udeps
should have failed here, as we don't use starknet-api since then. Investigating separately
Code quote:
starknet_api = "0.12.0-dev.0"
ca662ed
to
e036c65
Compare
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.
Reviewable status: 0 of 5 files reviewed, 3 unresolved discussions (waiting on @amosStarkware, @dorimedini-starkware, and @TzahiTaub)
crates/committer_cli/src/main.rs
line 29 at r4 (raw file):
/// The version of the class hash. #[clap(long)] class_hash_version: u8,
I think that it should accept it as a string that will later be converted to Felt.
PTAL here. Currently this is the input when hashing.
crates/committer_cli/src/main.rs
line 61 at r4 (raw file):
} #[derive(Debug, Args)]
please remove prefixes logic
e036c65
to
947eece
Compare
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.
Reviewable status: 0 of 5 files reviewed, 3 unresolved discussions (waiting on @amosStarkware, @nimrod-starkware, and @TzahiTaub)
crates/committer_cli/src/main.rs
line 29 at r4 (raw file):
Previously, nimrod-starkware wrote…
I think that it should accept it as a string that will later be converted to Felt.
PTAL here. Currently this is the input when hashing.
Done.
crates/committer_cli/src/main.rs
line 61 at r4 (raw file):
Previously, nimrod-starkware wrote…
please remove prefixes logic
Done.
947eece
to
5fb0413
Compare
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.
Reviewed 1 of 4 files at r1, 1 of 1 files at r5, 3 of 3 files at r6, all commit messages.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @amosStarkware, @dorimedini-starkware, and @nimrod-starkware)
Cargo.toml
line 17 at r6 (raw file):
[workspace.dependencies] clap = { version = "4.5.4", features = ["cargo", "derive"] } derive_more = "0.99.17"
Is this used?
crates/committer_cli/src/main.rs
line 9 at r6 (raw file):
pub struct CommitterCliArgs { #[clap(flatten)] global_opts: GlobalOpts,
Needed to run the CLI to understand what this means...
Suggestion:
global_options: GlobalOptions
5fb0413
to
43bdff5
Compare
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.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @amosStarkware, @nimrod-starkware, and @TzahiTaub)
Cargo.toml
line 17 at r6 (raw file):
Previously, TzahiTaub (Tzahi) wrote…
Is this used?
crates/committer_cli/src/main.rs
line 9 at r6 (raw file):
Previously, TzahiTaub (Tzahi) wrote…
Needed to run the CLI to understand what this means...
currently not in use; this is the struct where we will add options that are common to all commands.
if we see there is no such thing, we will delete this struct
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.
Reviewed 1 of 1 files at r7, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @amosStarkware and @nimrod-starkware)
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.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @amosStarkware)
43bdff5
to
3e77dc3
Compare
This change is