Compare commits
2 Commits
663b044f0c
...
70e91e569e
| Author | SHA1 | Date | |
|---|---|---|---|
| 70e91e569e | |||
| 3cc36a6224 |
@@ -1,9 +1,11 @@
|
||||
import os
|
||||
import json
|
||||
import click
|
||||
import os
|
||||
import time
|
||||
|
||||
import click
|
||||
import requests
|
||||
|
||||
|
||||
class AuthToken:
|
||||
def __init__(self):
|
||||
self.tokenfile = "token.json"
|
||||
@@ -37,7 +39,7 @@ class AuthToken:
|
||||
return 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)
|
||||
self.save_oauth_token(token)
|
||||
return token
|
||||
|
||||
20
README.md
20
README.md
@@ -1,3 +1,17 @@
|
||||
1) Clone the repo
|
||||
2) pip install .
|
||||
3) run by using "ct string"
|
||||
1. To install this package, run the following command in the terminal:
|
||||
|
||||
```
|
||||
pip install git+https://git.secureservers.be/VictorMylle/CopilotTerminal.git
|
||||
```
|
||||
|
||||
2. It's possible the package needs to be added to the PATH variable. To do this, run the following command in the terminal:
|
||||
|
||||
```
|
||||
export PATH=$PATH:~/.local/bin
|
||||
```
|
||||
|
||||
3. To run the package, run the following command in the terminal:
|
||||
|
||||
```
|
||||
ct <command>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user