adding new display message about where the token is coming from

This commit is contained in:
Samantha Marshall 2017-03-13 13:18:27 -04:00
commit 47f5691c0b
No known key found for this signature in database
GPG key ID: DF782CB74434EFA2

View file

@ -51,6 +51,9 @@ proc getGithubAuth(cfg: Config): Auth =
# always prefer the environment variable to asking for a new one
if existsEnv(ApiTokenEnvironmentVariable):
result.token = getEnv(ApiTokenEnvironmentVariable)
display("Info:", "Using the '" & ApiTokenEnvironmentVariable &
"' environment varaible for the GitHub API Token.",
priority = HighPriority)
else:
# try to read from disk, if it cannot be found write a new one
try: