Some parts, sometimes needed for implementing plugins, are not yet described in the plugin tutorial (doc/tutorials/plugins.md)
@petermax2 Can you take over the description of checkconf?
Btw. maybe we separate the tutorial into the basic parts and advanced parts (like checkconf).
@petermax2 Can you take over the description of checkconf?
Yes, can do.
Btw. maybe we separate the tutorial into the basic parts and advanced parts (like checkconf).
What else (besides checkconf) would be considered "advanced"?
I was just looking at plugins.md and found a description of checkconf (see line 379 ff.). What exactly is missing?
From the current tutorial, I would consider following points advanced:
and found a description
Ohh, I did not see it because I used a case-sensitive search.
What exactly is missing?
I think checkconfig is an important puzzle-piece for overall better usability.
how the type checker plugin could be used to check the plugin config via elektraInvokeGetFunction
That would require somehow inserting the metadata needed by the type checker... It is possible, the type plugin exports a function to check a single key, but most plugins won't need configuration complex enough to warrant that IMHO.
Can the user also add warnings?
AFAIK warnings added to the errorKey are printed during mounting.
I think it would be useful to warn on config keys the plugin does not understand.
I think requiring that plugins provide a specification for their configuration would be a better and more robust approach.
I think requiring that plugins provide a specification for their configuration would be a better and more robust approach.
Yes, definitely. This would be quite a big feature, though.
I can do the part on elektraPluginGetGlobalKeySet.
@vLesk Thank you!
I mark this issue stale as it did not have any activity for one year. I'll close it in two weeks if no further activity occurs. If you want it to be alive again, ping the issue by writing a message here or create a new issue with the remainder of this issue.
Thank you for your contributions :sparkling_heart:
Most helpful comment
That would require somehow inserting the metadata needed by the type checker... It is possible, the
typeplugin exports a function to check a single key, but most plugins won't need configuration complex enough to warrant that IMHO.AFAIK warnings added to the errorKey are printed during mounting.
I think requiring that plugins provide a specification for their configuration would be a better and more robust approach.