diff --git a/common_config/common.py b/common_config/common.py index fabbaadbbf40c0f5fc1fd7aa9211440db06623ee..649a78af18378ea669b572938abcc1a9cc7bfe84 100755 --- a/common_config/common.py +++ b/common_config/common.py @@ -379,12 +379,14 @@ def create_config(): """ Interactivally create a config directory at a choice of different places with a default config in it. """ - helptext = f"""Configs are read from the following directories (later overrides earlier): + helptext = f"""Configuration files are read from the following locations: 1. DEFAULT_CONFIG (use config default to inspect) 2. /etc/{APPLICATION_NAME}/*{SUFFIX}.toml (in alphabetical order) 3. $XDG_CONFIG_HOME/{APPLICATION_NAME}/*{SUFFIX}.toml (in alphabetical order) -4. $EIGENSERVICE_CONFIG_DIR/*{SUFFIX}.toml (in alphabetical order) -5. $EIGENSERVICE_CONFIG_PATH (final override) +4. ${APPLICATION_NAME}_CONFIG_DIR/*{SUFFIX}.toml (in alphabetical order) +5. ${APPLICATION_NAME}_CONFIG_PATH (final override) + +(Each overriding the fields in the previous one, where set) """ print(helptext) print() @@ -512,12 +514,14 @@ def print_help(): Helper tool for managing and installing a {APPLICATION_NAME} config. -Configs are read from the following directories (later overrides earlier): +Configuration files are read from the following locations: 1. DEFAULT_CONFIG (see below) 2. /etc/{APPLICATION_NAME}/*{SUFFIX}.toml (in alphabetical order) 3. $XDG_CONFIG_HOME/{APPLICATION_NAME}/*{SUFFIX}.toml (in alphabetical order) -4. $EIGENSERVICE_CONFIG_DIR/*{SUFFIX}.toml (in alphabetical order) -5. $EIGENSERVICE_CONFIG_PATH (final override) +4. ${APPLICATION_NAME}_CONFIG_DIR/*{SUFFIX}.toml (in alphabetical order) +5. ${APPLICATION_NAME}_CONFIG_PATH (final override) + +(Each overriding the fields in the previous one, where set) Commands: create . . . . . Interactivly create a default config file diff --git a/pyproject.toml b/pyproject.toml index 64ecbe2856cb7a2b69673a72764a220c9f4a2daf..113508009f4dacd361ad77f512e4fda064849e8d 100755 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "common-config" -version = "0.1.20" +version = "0.1.21" description = "A config library for python based services" authors = ["David Huss <dh@atoav.com>"]