FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge pull request #6 from GenstackOrg/sandbox · GenstackOrg/Genstack@2bee701 · GitHub

Commit 2bee701

Browse files
authored
Merge pull request #6 from GenstackOrg/sandbox
added helpers: chat with genstack
2 parents fc1821f + 4020225 commit 2bee701

4 files changed

Lines changed: 25 additions & 0 deletions

File tree

‎app/cli/help.bat‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
3+
python help.py %*

‎app/cli/help.py‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import sys
2+
import os
3+
from genstack import genstack
4+
from dotenv import load_dotenv
5+
6+
load_dotenv()
7+
8+
client = Genstack(API_KEY=os.getenv("GENKEY"))
9+
10+
def main():
11+
query = " ".join(sys.argv[1:])
12+
# Replace with LLM call
13+
print(f"Responding to {query}")
14+
15+
if __name__=="__main__":
16+
main()

‎app/cli/setup_help.sh‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
# Define the [help] command
3+
help () {
4+
python3 "$(pwd)/help.py" "$@"
5+
}
6+
echo "[help] command is ready! Use: [help] your query..."

‎runserver.sh‎

100644100755
File mode changed.

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL