import { CommandsLoader } from "https://deno.land/x/harmony@v2.7.0/mod.ts";
Methods
load(): Promise<Command>
filePath: string,
exportName?: string,
onlyRead?: boolean,
Load a Command from file.
NOTE: Relative paths resolve from cwd
loadDirectory(path: string, options?: { recursive?: boolean; exportName?: string; maxDepth?: number; exts?: string[]; onlyRead?: boolean; }): Promise<Command[]>
Load commands from a Directory.
NOTE: Relative paths resolve from cwd