✨ 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
@@ -48,6 +48,7 @@ def user(ctx):
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),
)
group_manager_name = settings.get(["accessControl", "groupManager"])