feat: cmd-ts
This commit is contained in:
28
cmd-ts/main.ts
Normal file
28
cmd-ts/main.ts
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
#!/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 ...
|
||||||
Reference in New Issue
Block a user