Repository navigation
Improve helper example section with env var usage - #1580
Closed
glennie wants to merge 1 commit into
python-gitlab:main from
glennie:patch-1
Closed
Conversation
Copy link
Copy Markdown
Hi,
I wanted to use an env var for the token.
I spend some time to figure out that I needed to escape '%' because of configparser.
Therefore, I made this PR to improve the current documentation hoping others will spend much less time than me.
Kind regards,
glennie
force-pushed
the
patch-1
branch
2 times, most recently
from
a8e7060 to
b9722c8
Compare
August 29, 2021 13:05
docs: improve helper example section
6ae421b
Added an example for using envrionement variable for tokens.
glennie
force-pushed
the
patch-1
branch
from
b9722c8 to
6ae421b
Compare
August 29, 2021 13:14
glennie
changed the title
Update cli-usage.rst
Improve helper example section with env var usage
Aug 29, 2021
nejch
reviewed
Sep 11, 2021
View reviewed changes
Comment thread
docs/cli-usage.rst
Comment on lines
+185
to
+191
|
|
private_token = helper: printf -- '%%s' ${GITLAB_TOKEN}
|
|
|
timeout = 1
|
|
|
|
|
|
**Notice:**
|
|
|
|
|
|
* ``printf`` is the executable provided by coreutils package (on a debian based distribution).
|
|
|
* ``%`` must be escaped using an other `%` (in order to allow `configparser` load configuration properly.
|
nejch
added
the
Waiting for response
label
Oct 6, 2021
nejch
assigned
glennie
Oct 6, 2021
Copy link
Copy Markdown
|
This Pull Request (PR) was marked stale because it has been open 90 days with no activity. Please remove the stale label or comment on this PR. Otherwise, it will be closed in 15 days.
|
github-actions
Bot
added
the
stale
label
Jan 8, 2022
Copy link
Copy Markdown
|
This PR was closed because it has been marked stale for 15 days with no activity. If this PR is still valid, please re-open.
|
github-actions
Bot
closed this
Jan 24, 2022
Sign up for free
to join this conversation on GitHub .
Already have an account?
Sign in to comment
Labels
stale
Waiting for response
2 participants