29 lines
449 B
TypeScript
29 lines
449 B
TypeScript
#!/usr/bin/env runts -- --allow-env --allow-run
|
|
|
|
import {
|
|
existsPath,
|
|
joinPath,
|
|
log,
|
|
readFileToString,
|
|
resolveFilename,
|
|
} from "https://global.hatter.ink/script/get/@12/deno-commons-mod.ts";
|
|
|
|
const CMD_CONFIG_FILE = "~/.config/cmd-ts.json";
|
|
|
|
interface CmdConfig {
|
|
cmds?: Map<string, Cmd>;
|
|
}
|
|
|
|
interface Cmd {
|
|
comment?: string;
|
|
alias?: string[];
|
|
}
|
|
|
|
|
|
async function main() {
|
|
// TODO ...
|
|
}
|
|
await main();
|
|
|
|
// TODO ...
|