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

Add verbose mode to wasmi cli #957

Merged
merged 2 commits into from
Mar 14, 2024
Merged

Conversation

tjpalmer
Copy link
Contributor

Fix #955.

This prevents the initial "executing File ..." message unless --verbose is set.

The only other informational message I found was the remaining fuel message. I didn't require verbose for this, since it already depends on the fuel option. But it's something to consider in the future perhaps.

Comment on lines 98 to 101

/// Enable informational messages beyond warnings or errors.
#[clap(long = "verbose")]
verbose: bool,
Copy link
Member

Choose a reason for hiding this comment

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

I am not 100% sure but I think it is important that the func_args field comes last since it takes a variable number of arguments. So please move the verbose field before it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds fine. Change made.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also, if you'd prefer restricting the remaining fuel message to verbose mode already, let me know, and I can do that, too.

Copy link
Member

@Robbepop Robbepop left a comment

Choose a reason for hiding this comment

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

LGTM

@tjpalmer Thank you for the Wasmi CLI improvement! :)

@tjpalmer
Copy link
Contributor Author

tjpalmer commented Mar 14, 2024

Thank you for the Wasmi CLI improvement! :)

Glad to help! Looking forward to the next release! Wasmi is a great project for up-to-date lightweight wasm support. (At least fairly up-to-date with good maintenance and a nice roadmap.)

@Robbepop Robbepop merged commit c0505f2 into wasmi-labs:master Mar 14, 2024
15 checks passed
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.

Add --verbose mode to Wasmi CLI
2 participants