Waypoints::CLI
Dispatches waypoints commands and renders their results.
Constants
USAGE = "Usage:\n waypoints [--db PATH] add <url> [--title T] [--tags a,b] [--notes N]\n waypoints [--db PATH] list [--tag t] [--json]\n waypoints [--db PATH] search <query> [--json]\n waypoints [--db PATH] describe <url>\n waypoints [--db PATH] rm <url>\n waypoints version"
Class methods
run(args : Array(String) = ARGV, output : IO = STDOUT, error : IO = STDERR, env : Hash(String, String) = ENV.to_h, home : String = Path.home.to_s, describer : Describer | Nil = nil) : Int32
Runs the command-line arguments and returns a process exit status.
describer is a seam for the describe command: when nil a production Describer (HTTP fetch + local llamero) is built on demand, so no other command ever constructs the model. Specs inject a fake describer here to exercise describe without loading MLX or touching the network.