help command

This commit is contained in:
Chris Wanstrath 2025-09-29 18:11:21 -07:00
parent bffd0c2b4b
commit c411678db2

View File

@ -1,10 +1,12 @@
// Show helpful information about a command.
// Show helpful information about a command.
//
// (Hopefully.)
import { commandPath } from "@/commands"
export default async function (cmd: string) {
if (!cmd) return "usage: help <command>"
const path = commandPath(cmd)
if (!path) throw `${cmd} not found`