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.)
|
// (Hopefully.)
|
||||||
|
|
||||||
import { commandPath } from "@/commands"
|
import { commandPath } from "@/commands"
|
||||||
|
|
||||||
export default async function (cmd: string) {
|
export default async function (cmd: string) {
|
||||||
|
if (!cmd) return "usage: help <command>"
|
||||||
|
|
||||||
const path = commandPath(cmd)
|
const path = commandPath(cmd)
|
||||||
if (!path) throw `${cmd} not found`
|
if (!path) throw `${cmd} not found`
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user