-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Pretty printed ABI from Forge Inspect #2433
Comments
Not following entirely: do you want |
He wants something along the lines of: forge $cmd | tail -n +2 | tee $outputFile |
No, removing the warnings seems secondary - the only reason the warnings are wanted to be gone is because the output is not pipeable into jq, so it is not possible to construct a prettified output yourself. I'm fairly confident it is about wanting a table? |
One idea is to have |
A table would be fine. |
@maurelian is this still open and in need of work? If yes, can I pick it up? |
@timofeli I'm just a user. @gakonst wdyt? |
Yes! Go for it @timofeli |
I think that in general, warnings should be sent to stderr, not stdout |
Marking this as resolved, |
this is pretty helpful |
Component
Forge
Describe the feature you would like
Issue
forge inspect <ContractName> abi
only prints a json formatted abi.That wouldn't be an issue, if it were possible to easily pipe the output to
jq
however the warnings printed at the beginning of the output prevent that work working.Suggested Feature
A
--pretty
formatting (similar to what's available forstorageLayout
) of the output would be great to have.Additional context
Current output looks like this (I see now that the warnings are pretty easy to resolve):
The text was updated successfully, but these errors were encountered: