gron adapter for JSON #176
lafrenierejm
started this conversation in
Show your adapter
Replies: 2 comments
-
|
awesome! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Here's an analogue for {
"args": ["--monochrome-output", "--output", "gron", "--input", "toml" ],
"binary": "qq",
"description": "Transform Markup files into greppable assignments",
"disabled_by_default": false,
"extensions": ["toml"],
"match_only_by_mime": false,
"mimetypes": [ "application/toml" ],
"name": "qq",
"version": 1
},
{
"args": ["--monochrome-output", "--output", "gron", "--input", "xml" ],
"binary": "qq",
"description": "Transform Markup files into greppable assignments",
"disabled_by_default": false,
"extensions": ["xml"],
"match_only_by_mime": false,
"mimetypes": [ "application/xml", "text/xml"],
"name": "qq",
"version": 1
},
{
"args": ["--monochrome-output", "--output", "gron", "--input", "yaml" ],
"binary": "qq",
"description": "Transform Markup files into greppable assignments",
"disabled_by_default": false,
"extensions": ["yml", "yaml"],
"match_only_by_mime": false,
"mimetypes": ["application/yaml", "text/yaml"],
"name": "qq",
"version": 1
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The description of gron from its homepage:
Setup
custom_adapters:{ "args": [], "binary": "gron", "description": "Transform JSON into discrete JS assignments", "disabled_by_default": false, "extensions": ["json"], "match_only_by_mime": false, "mimetypes": ["application/json"], "name": "gron", "version": 1 }Example Output
Result of
rga extensions config.jsonwith thegronadapter configured:Contents of
config.json{ "$schema": "./config.schema.json", "custom_adapters": [ { "args": [], "binary": "gron", "description": "Transform JSON into discrete JS assignments", "disabled_by_default": false, "extensions": ["json"], "match_only_by_mime": false, "mimetypes": ["application/json"], "name": "gron", "version": 1 } ] }Beta Was this translation helpful? Give feedback.
All reactions