fpv-wtf / wtfos-configurator

Configurator for wtfos, with built in margerine
GNU Affero General Public License v3.0
42 stars 16 forks source link

Allow packages to supply a dynamic config schema #370

Open j005u opened 1 year ago

j005u commented 1 year ago

This change allows packages to supply an executable at /opt/etc/package-config/package-name/schemaV2 and /opt/etc/package-config/package-name/uiSchemaV2 that outputs the appropriate schema instead of a static .json file.

For example, msp-osd can populate font options dynamically.

The --config-schema and --config-ui-schema flags get appended accordingly to executable calls to allow for easy symlinking to executable that might serve multiple purposes.

j005u commented 1 year ago

Here's an example schemaV2 executable for msp-osd schemaV2.zip