diff options
| author | twells46 <173561638+twells46@users.noreply.github.com> | 2026-04-01 15:54:58 -0500 |
|---|---|---|
| committer | twells46 <173561638+twells46@users.noreply.github.com> | 2026-04-01 15:54:58 -0500 |
| commit | db1c2b8ce214bc555b8aa21114c6614e9071bf34 (patch) | |
| tree | f01d5c945d90472226d280be205d9cfc4a64faad /README.md | |
| parent | 1e72f44f28b97ef3f28627421bedca379d136a76 (diff) | |
Add simple shell executable
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -21,6 +21,13 @@ Then run a query like this: python query_index.py "get free disk space" ``` +Or install the wrapper script and use `cheat` from anywhere: + +```sh +ln -sf "$PWD/bin/cheat" ~/.local/bin/cheat +cheat "get free disk space" +``` + To add commands, add to `./cards.jsonl` and rebuild the index: ```sh @@ -36,19 +43,19 @@ python query_index.py --serve Then keep using the same query command: ```sh -python query_index.py "get free disk space" +cheat "get free disk space" ``` To run the server in the background: ```sh -nohup python query_index.py --serve >/tmp/cheat.log 2>&1 & +nohup cheat --serve >/tmp/cheat.log 2>&1 & ``` Useful controls: ```sh -python query_index.py --status -python query_index.py --reload -python query_index.py --stop +cheat --status +cheat --reload +cheat --stop ``` |