summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJeremy Cline <jcline@redhat.com>2020-04-14 15:27:51 -0400
committerJeremy Cline <jcline@redhat.com>2020-04-16 19:01:32 -0400
commit401e702a9ff14bf4cc33b3ed3acf16f3c60c6945 (patch)
treeda3e74f200b74f3fea6168c6597852391e7a00ca /docs
parentc7c431af16f256f95a9553cf2e14925fa75f7d62 (diff)
downloadgitlab-401e702a9ff14bf4cc33b3ed3acf16f3c60c6945.tar.gz
feat: allow an environment variable to specify config location
It can be useful (especially in scripts) to specify a configuration location via an environment variable. If the "PYTHON_GITLAB_CFG" environment variable is defined, treat its value as the path to a configuration file and include it in the set of default configuration locations.
Diffstat (limited to 'docs')
-rw-r--r--docs/cli.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/cli.rst b/docs/cli.rst
index b5c8e52..aeff276 100644
--- a/docs/cli.rst
+++ b/docs/cli.rst
@@ -14,7 +14,10 @@ Configuration
Files
-----
-``gitlab`` looks up 2 configuration files by default:
+``gitlab`` looks up 3 configuration files by default:
+
+``PYTHON_GITLAB_CFG`` environment variable
+ An environment variable that contains the path to a configuration file
``/etc/python-gitlab.cfg``
System-wide configuration file