Permalink
Browse files

Improving warning message when ApiTokens.psm1 does not exist

  • Loading branch information...
KarolKaczmarek committed Sep 26, 2016
1 parent 7be9ef8 commit ebc9440c68a7288d7a138926f35721f886b13963
Showing with 6 additions and 6 deletions.
  1. +3 −3 GitHubAnalytics.psm1
  2. +3 −3 GitHubLabels.psm1
View
@@ -11,10 +11,10 @@ if (Test-Path $apiTokensFilePath)
}
else
{
Write-Host "$apiTokensFilePath does not exist, skipping import"
Write-Host @'
Write-Warning "$apiTokensFilePath does not exist, skipping import"
Write-Warning @'
This module should define $global:gitHubApiToken with your GitHub API access token in ApiTokens.psm1. Create this file if it doesn't exist.
You can simply rename ApiTokensTemplate.psm1 to ApiTokens.psm1 and update value of $global:gitHubApiToken.
You can simply rename ApiTokensTemplate.psm1 to ApiTokens.psm1 and update value of $global:gitHubApiToken, then reimport this module with -Force switch.
You can get GitHub token from https://github.com/settings/tokens
If you don't provide it, you can still use this module, but you will be limited to 60 queries per hour.
'@
View
@@ -11,10 +11,10 @@ if (Test-Path $apiTokensFilePath)
}
else
{
Write-Host "$apiTokensFilePath does not exist, skipping import"
Write-Host @'
Write-Warning "$apiTokensFilePath does not exist, skipping import"
Write-Warning @'
This module should define $global:gitHubApiToken with your GitHub API access token in ApiTokens.psm1. Create this file if it doesn't exist.
You can simply rename ApiTokensTemplate.psm1 to ApiTokens.psm1 and update value of $global:gitHubApiToken.
You can simply rename ApiTokensTemplate.psm1 to ApiTokens.psm1 and update value of $global:gitHubApiToken, then reimport this module with -Force switch.
You can get GitHub token from https://github.com/settings/tokens
If you don't provide it, you can still use this module, but you will be limited to 60 queries per hour.
'@

0 comments on commit ebc9440

Please sign in to comment.