-
Notifications
You must be signed in to change notification settings - Fork 390
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
JSON schema and yaml support #1068
base: main
Are you sure you want to change the base?
JSON schema and yaml support #1068
Conversation
Ideally, YAML should be supported by this tool itself. But as I am not Python developer, I can't integrate YAML support directly to Python code now. (Maybe later.) |
Now it's possible to tinker ./.vscode/settings.json (just this path is checked for existence) automatically when |
Related Issue/Addition to code
Type of change
Proposed Changes
JSON schema generator and converter to .ini file.
nu generate_json_schema.nu --schema <where-to-put-it>
or./generate_json_schema.sh --schema <where-to-put-it>
nu generate_json_schema.nu --ini-config <where-to-put-ini> --yaml-config <where-to-take-yaml-from>
or./generate_json_schema.sh --ini-config <where-to-put-ini> --yaml-config <where-to-take-yaml-from>
Why is this change needed?
It's needed because there is no intellisence available for .ini files.
Additional Info
This script allows to:
It means that users can configure tool via YAML having intellisence and validation. Script is written in Nushell and is already ported to POSIX sh.
Currently this schema is automatically generated:
Checklist:
Screenshots