-
Notifications
You must be signed in to change notification settings - Fork 373
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: overhaul gnoland secrets
and gnoland config
to output JSON
#2393
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2393 +/- ##
==========================================
+ Coverage 54.66% 54.68% +0.01%
==========================================
Files 583 583
Lines 78508 78502 -6
==========================================
+ Hits 42913 42925 +12
+ Misses 32384 32369 -15
+ Partials 3211 3208 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
On a single field, please remove the |
I added support for the |
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.
Looks super cool and intuitive.
Maybe at some point (not in this PR) we could extend raw mode to structure by printing values in the form <key>=<value>
so the command could be used in combination with the eval
bash command.
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.
Looks useful and strightforward
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.
Pre-approving
…nolang#2393) ## Description This PR overhauls the `gnoland secrets get` and `gnoland config get` commands to: - always output JSON by default - support key paths for specific fields - have `-raw` support for single value JSON (escapes `"`) Thank you @moul for the suggestion on this 🙏 ![sample](https://github.com/gnolang/gno/assets/16712663/30c87b02-1c77-4134-a3b0-88b95687e292) cc @albttx @sw360cab @r3v4s @mazzy89 <details><summary>Contributors' checklist...</summary> - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [x] Added references to related issues and PRs - [x] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). </details>
Description
This PR overhauls the
gnoland secrets get
andgnoland config get
commands to:-raw
support for single value JSON (escapes"
)Thank you @moul for the suggestion on this 🙏
cc @albttx @sw360cab @r3v4s @mazzy89
Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description