adding new display message about where the token is coming from
This commit is contained in:
parent
26344e2083
commit
47f5691c0b
1 changed files with 3 additions and 0 deletions
|
|
@ -51,6 +51,9 @@ proc getGithubAuth(cfg: Config): Auth =
|
||||||
# always prefer the environment variable to asking for a new one
|
# always prefer the environment variable to asking for a new one
|
||||||
if existsEnv(ApiTokenEnvironmentVariable):
|
if existsEnv(ApiTokenEnvironmentVariable):
|
||||||
result.token = getEnv(ApiTokenEnvironmentVariable)
|
result.token = getEnv(ApiTokenEnvironmentVariable)
|
||||||
|
display("Info:", "Using the '" & ApiTokenEnvironmentVariable &
|
||||||
|
"' environment varaible for the GitHub API Token.",
|
||||||
|
priority = HighPriority)
|
||||||
else:
|
else:
|
||||||
# try to read from disk, if it cannot be found write a new one
|
# try to read from disk, if it cannot be found write a new one
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue