rony-llm-agent/cmd/rony-llm-agent/main.go
Victor Vargas 6e9211b5a0
Some checks failed
bump-version / bump (push) Has been cancelled
ci: automatic version + releases tag
2026-08-02 18:25:14 -07:00

31 lines
610 B
Go

package main
import (
"fmt"
"os"
)
var version = "dev"
const usage = `rony-llm-agent — minimal CLI for the rony-llm-agent library
Usage:
rony-llm-agent version Print the library version and exit
rony-llm-agent help Print this help message and exit`
func main() {
if len(os.Args) < 2 {
fmt.Fprintln(os.Stderr, usage)
os.Exit(1)
}
switch os.Args[1] {
case "version", "--version", "-v":
fmt.Printf("rony-llm-agent %s\n", version)
case "help", "--help", "-h":
fmt.Println(usage)
default:
fmt.Fprintf(os.Stderr, "unknown command: %s\n\n%s", os.Args[1], usage)
os.Exit(1)
}
}