-
Notifications
You must be signed in to change notification settings - Fork 194
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
🍀 Proposal
: Use embed
to read the default config
#603
Comments
It's so cool! This idea is especially awesome! Let's discuss a simple design that I think would look like as below:
|
I'm currently having a problem with My idea is to create a Related Issues: |
How about to put the yaml files to |
@daniel-hutao The latest commit has moved the plugin yaml default config to that dir, but I still think the golang/go#41191 (comment) approach is appropriate, as all examples can be exposed to other packages. |
Or I'll start by making the current |
What Would You Like to Add? Why is This Needed?
In
internal/pkg/show/config
, the default config is all written in text. Why not useembed
to import template files?This way you can have highlighting and the separate files are easy to maintain.
Design
All the default config vars are placed in one file(
internal/pkg/show/config/config.go
), and the default config yaml files are placed in theconfigs
dir.Take
githubactions-*
as an example:Anything else
Similarly, all code that involves templates can be done like this。
Issues that may be affected:
#596 #597 #598
The text was updated successfully, but these errors were encountered: