Compare commits

...

2 Commits

Author SHA1 Message Date
70e91e569e Updated README 2023-05-24 12:13:21 +02:00
3cc36a6224 Small change 2023-05-24 12:11:49 +02:00
2 changed files with 22 additions and 6 deletions

View File

@@ -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

View File

@@ -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>
```