From 919971a34f9c87348258cdae08604afcba1e0a18 Mon Sep 17 00:00:00 2001 From: CovertDuck Date: Tue, 20 Jun 2023 00:13:59 -0400 Subject: [PATCH] mods: add page (#10391) * mods: add page --------- Co-authored-by: K.B.Dharun Krishna Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/common/mods.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/common/mods.md diff --git a/pages/common/mods.md b/pages/common/mods.md new file mode 100644 index 000000000..e8d95ceaa --- /dev/null +++ b/pages/common/mods.md @@ -0,0 +1,32 @@ +# mods + +> AI for the command line, built for pipelines. +> More information: . + +- Ask a generic question: + +`mods "{{write me a poem about platypuses}}"` + +- Open settings in your `$EDITOR`: + +`mods --settings` + +- Ask for comments on your code, in markdown format: + +`mods --format "{{what are your thoughts on improving this code?}}" < {{path/to/file}}` + +- Ask for help with your documentation, in markdown format: + +`mods --format "{{write a new section to this readme for a feature that sends you a free rabbit if you hit r}} < {{README.md}}"` + +- Organize your videos, in markdown format: + +`ls {{path/to/videos}} | mods --format "{{organize these by decade and summarize}}"` + +- Read through raw HTML and summarize the contents, in markdown format: + +`curl "{{https://api.open-meteo.com/v1/forecast?latitude=29.00&longitude=-90.00¤t_weather=true&hourly=temperature_2m,relativehumidity_2m,windspeed_10m}}" | mods --format "{{summarize this weather data for a human}}"` + +- Display help and exit: + +`mods --help`