Skip to content
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

feat(sozo): print-env subcommand #1930

Merged
merged 3 commits into from
May 7, 2024
Merged

feat(sozo): print-env subcommand #1930

merged 3 commits into from
May 7, 2024

Conversation

lambda-0x
Copy link
Collaborator

adds print-env subcommand which prints given list of arguments (or no arguments) what values will sozo use for things like account_address, world_address, etc...

Copy link

codecov bot commented May 5, 2024

Codecov Report

Attention: Patch coverage is 45.00000% with 44 lines in your changes are missing coverage. Please review.

Project coverage is 69.40%. Comparing base (5a3d246) to head (4f7985f).
Report is 6 commits behind head on main.

Files Patch % Lines
bin/sozo/src/commands/print_env.rs 0.00% 26 Missing ⚠️
bin/sozo/src/commands/mod.rs 45.83% 13 Missing ⚠️
bin/sozo/src/commands/auth.rs 0.00% 1 Missing ⚠️
bin/sozo/src/commands/call.rs 0.00% 1 Missing ⚠️
bin/sozo/src/commands/execute.rs 0.00% 1 Missing ⚠️
bin/sozo/src/commands/migrate.rs 0.00% 1 Missing ⚠️
bin/sozo/src/commands/model.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1930      +/-   ##
==========================================
- Coverage   69.46%   69.40%   -0.07%     
==========================================
  Files         313      314       +1     
  Lines       35348    35410      +62     
==========================================
+ Hits        24556    24577      +21     
- Misses      10792    10833      +41     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@tarrencev tarrencev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor suggestion otherwise lgtm


impl PrintEnvArgs {
pub fn run(self, config: &Config) -> Result<()> {
trace!("Executing PrintEnv command.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's try to namespace all our loggers

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think a better way would be to use span's for this usecase, instead of printing in each of them. lmk if you have more thoughts on this for now i will add spans.

@lambda-0x lambda-0x merged commit 8367fa0 into main May 7, 2024
11 of 13 checks passed
@lambda-0x lambda-0x deleted the sozo-print-env branch May 7, 2024 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants