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

cli: Automatically decode guess when decode does not have type specified #350

Open
leighmcculloch opened this issue Mar 7, 2024 · 0 comments

Comments

@leighmcculloch
Copy link
Member

leighmcculloch commented Mar 7, 2024

What problem does your feature solve?

When the CLI is able to guess the type, it's unnecessary to ask the user to provide the type which is more typing.

What would you like to see?

That decode works without specifying the type if the type can be guessed:

$ echo -n '...' | stellar-xdr decode
...

Replacing this flow:

$ echo -n '...' | stellar-xdr guess
DiagnosticEvent

$ echo -n '...' | stellar-xdr decode --type DiagnosticEvent
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant