-
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
feat(forge
): inspect - default to pretty output
#9705
base: master
Are you sure you want to change the base?
Conversation
forge
): inspect - default to pretty outputforge
): inspect - default to pretty output
per comment #5165 (comment) I think we want to totally remove the
hope I got this right, @zerosnacks pls correct me if I am wrong |
Agreed, we want to optimize the default output for human readability and if users want to use the output in a script they should rely on the |
@@ -29,18 +30,14 @@ pub struct InspectArgs { | |||
#[arg(value_enum)] | |||
pub field: ContractArtifactField, | |||
|
|||
/// Pretty print the selected field, if supported. | |||
#[arg(long)] | |||
pub pretty: bool, |
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.
we should keep this with a warning or document as a breaking change
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.
yeah, will be marked in release notes as breaking change given the breaking label
for reference: |
@grandizzy @zerosnacks ptal |
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.
generally lgtm, note on additional tests + minor style nit
in the release note we can mention the cast interface <CONTRACT>
equivalent
Motivation
Closes #5165
Solution
--pretty
flag and makes that behavior the default.abi
,method-identifiers
,errors
, andevents
by default, json can be obtained using the--json
.json
by default.