living-together/source/Service/Runner.ts
2022-04-15 00:16:00 +08:00

8 lines
189 B
TypeScript

import { Service } from "@Service/Service";
import * as minimist from "minimist";
const args = minimist(process.argv.slice(2));
if (args.run) {
new Service().run(args.path, args.port);
}