core :: Sys :: get_github_oauth
git
configurationReturn the value of git config --get github.oauthtoken
or ""
if no key exists.
# Gets the Github token from `git` configuration
#
# Return the value of `git config --get github.oauthtoken`
# or `""` if no key exists.
fun get_github_oauth: String
do
var p = new ProcessReader("git", "config", "--get", "github.oauthtoken")
var token = p.read_line
p.wait
p.close
return token.trim
end
lib/github/api.nit:1148,1--1159,3