| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,3 @@ | |||
| 1 | + @echo off | ||
| 2 | + | ||
| 3 | + python help.py %* | ||
| Original file line number | Diff line number | Diff 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() | ||
| Original file line number | Diff line number | Diff 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..." | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments