// // Playpass (c) Playco // https://github.com/playpassgames/playpass/blob/main/LICENSE.txt import { program } from "commander"; import kleur from "kleur"; import { login, logout } from "./auth"; import { create } from "./create"; import { deploy } from "./deploy"; import { domain } from "./domain"; import { getDomain } from "./get-domain"; import { deleteDomain } from "./delete-domain"; import { playpassUrl } from "./config"; import {deleteGame} from "./delete"; import {rename} from "./rename"; if (!process.env.PLAYPASS_DEV) { process.on("uncaughtException", (error) => { console.error(`${kleur.red("✘")} ${error.message || error}`); process.exit(1); }); } program .command("login") .description("Login to Playpass") .action(login); program .command("logout") .description("Logout of Playpass") .action(logout); program .command("create [directory]") .option("--name ", "Canonical name of your project. This will be used as your subdomain. Defaults to the directory name.") .option("--template