From 47f5691c0b15c101ad21aa4a21950d555b50132b Mon Sep 17 00:00:00 2001 From: Samantha Marshall Date: Mon, 13 Mar 2017 13:18:27 -0400 Subject: [PATCH] adding new display message about where the token is coming from --- src/nimblepkg/publish.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nimblepkg/publish.nim b/src/nimblepkg/publish.nim index 562a388..9b24518 100644 --- a/src/nimblepkg/publish.nim +++ b/src/nimblepkg/publish.nim @@ -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: