-
Notifications
You must be signed in to change notification settings - Fork 176
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
Conversation
Codecov ReportAttention: Patch coverage is
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. |
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.
Minor suggestion otherwise lgtm
bin/sozo/src/commands/print_env.rs
Outdated
|
||
impl PrintEnvArgs { | ||
pub fn run(self, config: &Config) -> Result<()> { | ||
trace!("Executing PrintEnv command."); |
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.
Let's try to namespace all our loggers
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.
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.
adds
print-env
subcommand which prints given list of arguments (or no arguments) what values will sozo use for things likeaccount_address
,world_address
, etc...