diff options
author | EuAndreh <eu@euandre.org> | 2024-03-25 06:42:35 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-03-25 06:44:18 -0300 |
commit | 077b81b2bd2c0d418635b265b35f582d68cec16a (patch) | |
tree | ed3c928ea3b1d5df539b6e1902ab418caa937672 /src/api.mjs | |
parent | src/hero.mjs: Retire code (diff) | |
download | papod-077b81b2bd2c0d418635b265b35f582d68cec16a.tar.gz papod-077b81b2bd2c0d418635b265b35f582d68cec16a.tar.xz |
Node.js -> Go
Diffstat (limited to 'src/api.mjs')
-rw-r--r-- | src/api.mjs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/api.mjs b/src/api.mjs deleted file mode 100644 index 31bb09e..0000000 --- a/src/api.mjs +++ /dev/null @@ -1,20 +0,0 @@ -import process from "node:process"; - -import * as ircd from "./ircd.mjs"; -import * as web from "./web.mjs"; - -const SUBCOMMANDS = { - ircd: ircd.app, - web: web.app, -}; - -export const main = async () => { - const [_node, _file, cmdName, ...args] = process.argv; - const cmd = SUBCOMMANDS[cmdName]; - if (cmd === undefined) { - console.error("Usage: papo SUBCOMMAND [OPTIONS]"); - return process.exit(2); - } - - await cmd(...args); -}; |