-
Notifications
You must be signed in to change notification settings - Fork 312
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: cli option to decode serialized Clarity values #1599
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1599 +/- ##
==========================================
+ Coverage 66.18% 66.31% +0.13%
==========================================
Files 118 119 +1
Lines 8640 8690 +50
Branches 1908 1914 +6
==========================================
+ Hits 5718 5763 +45
- Misses 2685 2802 +117
+ Partials 237 125 -112 ☔ View full report in Codecov by Sentry. |
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.
Very useful!! 🎉
Description
New CLI feature to decode Clarity values into json/repr/pretty strings.
Example
The
repr
format string is returned by default:Use
--format json
to output JSON:Use
--format pretty
to output a pretty-print repr string:Values can also be piped into the command by using
-
in place of the value:Real world example of decoding output from a Stacks node RPC call:
Checklist