mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-12 23:56:13 +01:00
Merge pull request #1557 from dmach/doc-conf-env
Document loading configuration from env variables
This commit is contained in:
commit
13f7f525ab
@ -71,6 +71,11 @@ osc.conf._model_to_rst(
|
||||
description=textwrap.dedent(
|
||||
"""
|
||||
The configuration file path is ``$XDG_CONFIG_HOME/osc/oscrc``, which usually translates into ``~/.config/osc/oscrc``.
|
||||
|
||||
The configuration options are loaded with the following priority:
|
||||
1. environment variables: ``OSC_<uppercase_option>`` or ``OSC_<uppercase_host_alias>_<uppercase_host_option>``
|
||||
2. command-line options
|
||||
3. oscrc config file
|
||||
"""
|
||||
),
|
||||
sections={
|
||||
|
@ -1817,8 +1817,8 @@ def get_config(override_conffile=None,
|
||||
Configure osc.
|
||||
|
||||
The configuration options are loaded with the following priority:
|
||||
1. environment variables: OSC_<uppercase_option>
|
||||
2. override arguments provided to get_config()
|
||||
1. environment variables: ``OSC_<uppercase_option>`` or ``OSC_<uppercase_host_alias>_<uppercase_host_option>``
|
||||
2. override arguments provided to ``get_config()``
|
||||
3. oscrc config file
|
||||
"""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user