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

Idea: Control output formatting via proto files #48

Open
rainerschoe opened this issue Jul 3, 2019 · 0 comments
Open

Idea: Control output formatting via proto files #48

rainerschoe opened this issue Jul 3, 2019 · 0 comments

Comments

@rainerschoe
Copy link
Member

Describe the solution you'd like
It would be nice to automatically format fields the way they are supposed to.
Currently for example integers are by default formatted in both decimal and hex. One of those representations is in most cases unnecessary. When you write a .proto file you will know which representation of a field makes sense, so you could write something like this:

message test{
  int32 count          = 1 [formatHint:dec];
  int32 registerValue  = 2 [formatHint:hex];
}

which then influences the gWhisper output formatter.

Describe alternatives you've considered
none

Describe why you think this feature is useful for gWhisper users
makes output easier to read by only printing necessary information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant