Small change
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
import os
|
|
||||||
import json
|
import json
|
||||||
import click
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
import click
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
|
||||||
class AuthToken:
|
class AuthToken:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.tokenfile = "token.json"
|
self.tokenfile = "token.json"
|
||||||
@@ -37,7 +39,7 @@ class AuthToken:
|
|||||||
return token
|
return token
|
||||||
|
|
||||||
# if not, ask the user to enter the token
|
# if not, ask the user to enter the token
|
||||||
click.echo("Please enter your github access token:")
|
click.echo("Please enter your github access token (can be found in ~/.config/github-copilot/hosts.json):")
|
||||||
token = click.prompt("Token", type=str)
|
token = click.prompt("Token", type=str)
|
||||||
self.save_oauth_token(token)
|
self.save_oauth_token(token)
|
||||||
return token
|
return token
|
||||||
|
|||||||
Reference in New Issue
Block a user