-
Notifications
You must be signed in to change notification settings - Fork 72
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
soroban-cli inspect should generate human-readable output #136
Comments
Those issues are only a partial solution. It handles the names as strings part but not the pretty representations of structs and unions. For concreteness,
which is not pleasant. Even if the names were rendered correctly, the types would still be quite unpleasant. From my perspective, the desirable output would be something like (snippet)
|
Maybe for the use case you're looking for the The inspect command is more useful for debugging, but maybe it is too low level and the low level output it outputs right now should be an option. |
Ah yes |
It was intended for debugging the raw contents of the WASM, and not the interpreted contents. It shows you things like the environment version, and the raw contract spec as XDR. A last line of defense against everything is broken and you want to see what's in the file. It used to also print the raw functions available according to the WASM but I took it out temporarily but would like to add that back, along with a list of all host functions it is dependent on. It sounds like the command could do with two modes, one for these raw details and one that is by default the user friendly view, where the user friendly view has to interpret the contents and the raw does not. Or these could be two separate commands. |
What problem does your feature solve?
inspect
doesn't render names as strings, doesn't give pretty (possibly rust-like?) representations ofstructs
andunions
, etc.What would you like to see?
Easy to read output.
What alternatives are there?
TODO
The text was updated successfully, but these errors were encountered: