Gets the Github token from git configuration

Return the value of git config --get github.oauthtoken or "" if no key exists.

Property definitions

github :: api $ Sys :: get_github_oauth
# 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