cobbler / libcobblersignatures

Library for working with cobbler signatures
GNU General Public License v2.0
4 stars 5 forks source link

[CLI]: Add option to load the built-in config #73

Closed SchoolGuy closed 6 months ago

SchoolGuy commented 6 months ago

As a user
I want to have a starting point for my signatures.json file
so that I can spend less time modifying the defaults.


The questionary dialogue defined in import_menu_questions should receive a new option that states Built-In.

When this option is chosen then the built-in v2 schema (data/v2/distro_signatures.json) should be loaded via importlib resources. The code should utilize either the backport (already defined in setup.py) or the standard library.

Under no circumstance, it should be possible to overwrite the built-in config file.

Hint: The method to react correctly for the menu can be found here. https://github.com/cobbler/libcobblersignatures/blob/c5ca25fbe23a7916a9745788f5f9f158dc87d00d/libcobblersignatures/cli.py#L422