help command
This commit is contained in:
parent
bffd0c2b4b
commit
c411678db2
|
|
@ -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`
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user