✨ New --overlay CLI flag

Allows to specify additional config overlay paths to use between the
default settings and config.yaml. Can be either individual yaml files,
or a whole directory containing an arbitrary number of yaml files.

Allows to change the default configuration without interfering with
config.yaml.

OctoPrint side solution for #3821, OctoPi needs to be modified to make
use of this for its platform specific configuration.
This commit is contained in:
Gina Häußge committed 2020-11-26 10:38:53 +01:00
1 parent b124de4f04
commit 572ea6f2a7
7 files changed
+75 -8

No files matched your search

+1
View File
@@ -84,6 +84,7 @@ class OctoPrintPluginCommands(click.MultiCommand):
self.settings = init_settings(
get_ctx_obj_option(ctx, "basedir", None),
get_ctx_obj_option(ctx, "configfile", None),
overlays=get_ctx_obj_option(ctx, "overlays", None),
)
self.plugin_manager = init_pluginsystem(
self.settings, safe_mode=get_ctx_obj_option(ctx, "safe_mode", False)