CLI mode
CLI mode is made to be integrated in your command lines workflow.
You can perform a single run:
yai list all processes listening on port 8080
You can ask for a command line generation, enforcing π exec prompt mode usage with -e:
yai -e show the disk usage of my docker resources
You can ask any question, enforcing π¬ chat prompt mode usage with -c:
yai -c generate me a go application example using fiber
You can also pipe input that will be taken into account in your request:
cat some_script.go | yai -c generate unit tests
Or even:
cat error.log | yai -c explain what is wrong here
REPL mode
REPL mode is made to work in an interactive way.
Just run:
yai
This will open a REPL interface, with 2 types of prompts (use tab to switch)
π exec: will generate a command line to execute for what youβre askingπ¬ chat: will engage in a discussion to help you the best way possible
You also can use the following keyboard shortcuts:
ββ: Navigate in historytab: Switch betweenπ execandπ¬ chatprompt modesctrl+h: Show helpctrl+s: Edit settingsctrl+r: Clear terminal and reset discussion historyctrl+l: Clear terminal but keep discussion historyctrl+c: Exit or interrupt command execution