-
Notifications
You must be signed in to change notification settings - Fork 1
CLI Usage
Atomie CHEN edited this page May 7, 2024
·
5 revisions
handyllm
CLI program (triggered by handyllm
or python -m handyllm
) comes with handy commands.
The handyllm hprompt
command helps you quickly test hprompt files and get results, without writing any python code:
usage: handyllm hprompt [-h] [-o OUTPUT] [-v] [-vm VAR_MAP] [-vmp VAR_MAP_PATH] path [path ...]
Run hprompt files
positional arguments:
path Path(s) to hprompt file
optional arguments:
-h, --help show this help message and exit
-o OUTPUT, --output OUTPUT
Output path; if not provided, output to stderr (default: None)
-v, --verbose Verbose output (default: False)
-vm VAR_MAP, --var-map VAR_MAP
Variable map in the format key1=value1|key2=value2 (default: None)
-vmp VAR_MAP_PATH, --var-map-path VAR_MAP_PATH
Variable map file path (default: None)
Thus you can run .hprompt
files directly by handyllm hprompt my.hprompt
.