Spaces:
Running
Running
Rohit Rajpoot
commited on
Commit
·
1453d4f
1
Parent(s):
80679db
Fix chat command signature to use string argument
Browse files- assist/main.py +4 -8
assist/main.py
CHANGED
@@ -1,10 +1,7 @@
|
|
1 |
import typer
|
2 |
from rich import print
|
3 |
-
from pathlib import Path
|
4 |
-
|
5 |
-
# Import and alias the stub so it doesn't collide with our CLI function
|
6 |
-
from .chat import chat as chat_plugin
|
7 |
from .heatmap import show_heatmap
|
|
|
8 |
|
9 |
app = typer.Typer(help="RepoSage Synth CLI")
|
10 |
|
@@ -19,11 +16,10 @@ def heatmap():
|
|
19 |
show_heatmap()
|
20 |
|
21 |
@app.command()
|
22 |
-
def chat(
|
23 |
"""Invoke the chat plugin stub."""
|
24 |
-
|
25 |
-
response = chat_plugin(repo)
|
26 |
print(response)
|
27 |
|
28 |
if __name__ == "__main__":
|
29 |
-
app()
|
|
|
1 |
import typer
|
2 |
from rich import print
|
|
|
|
|
|
|
|
|
3 |
from .heatmap import show_heatmap
|
4 |
+
from .chat import chat as chat_plugin
|
5 |
|
6 |
app = typer.Typer(help="RepoSage Synth CLI")
|
7 |
|
|
|
16 |
show_heatmap()
|
17 |
|
18 |
@app.command()
|
19 |
+
def chat(question: str = typer.Argument(..., help="Question to ask RepoSage")):
|
20 |
"""Invoke the chat plugin stub."""
|
21 |
+
response = chat_plugin(question)
|
|
|
22 |
print(response)
|
23 |
|
24 |
if __name__ == "__main__":
|
25 |
+
app()
|