You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that wasm-tools dump is really useful, but coloring the output, especially the section entries such as type section, would make it more readable.
However, I'm not sure if it is acceptable for the output to contain escape codes for coloring.
What do you think?
I think it'd be great to add color! This is a central structure which could grow a --color argument and the output_writer method could perhaps return a WriteColor trait object instead of a Write trait object to allow callers to customize colors.
Personally I find colors make it much easier to explore lots of output, so I'm all for this. Would you be up for prototyping this in a PR?
Activity
[-]Color section type for `dump` command[/-][+]Colorize section types in `dump` output[/+]alexcrichton commentedon May 10, 2023
I think it'd be great to add color! This is a central structure which could grow a
--colorargument and theoutput_writermethod could perhaps return aWriteColortrait object instead of aWritetrait object to allow callers to customize colors.Personally I find colors make it much easier to explore lots of output, so I'm all for this. Would you be up for prototyping this in a PR?
maekawatoshiki commentedon May 10, 2023
Glad to hear that. I'll try to create a PR for it.