UNPKG

shipthis

Version:

ShipThis manages building and uploading your Godot games to the App Store and Google Play.

72 lines (69 loc) 2.14 kB
import { jsx } from 'react/jsx-runtime'; import { Flags } from '@oclif/core'; import { render } from 'ink'; import { B as BaseAuthenticatedCommand } from '../../baseGameCommand-8VL7xe-O.js'; import 'node:fs'; import 'node:path'; import 'chalk'; import 'axios'; import 'crypto-js'; import 'uuid'; import '../../baseCommand-CTn3KGH3.js'; import 'luxon'; import 'node:crypto'; import 'node:readline'; import 'node:url'; import 'readline-sync'; import 'isomorphic-git'; import '@tanstack/react-query'; import 'react'; import 'fast-glob'; import 'yazl'; import 'socket.io-client'; import 'fullscreen-ink'; import 'ink-spinner'; import { a as GameStatus$1 } from '../../GameStatus-ZSe-qG3y.js'; import 'string-length'; import 'strip-ansi'; import 'open'; import '@inkjs/ui'; import 'marked'; import 'marked-terminal'; import 'qrcode'; import { C as CommandGame } from '../../CommandGame-CuvuH-z6.js'; import 'fs'; import 'path'; import '@expo/apple-utils/build/index.js'; import 'deepmerge'; import 'ini'; import '../../StatusTable-DzRWcMr4.js'; import '../../Title-BCQtayg6.js'; import '../../NextSteps-DbJHmscQ.js'; import '../../Command-Cj6F5B5a.js'; class GameStatus extends BaseAuthenticatedCommand { static args = {}; static description = "Shows the status of the current game."; static examples = [ "<%= config.bin %> <%= command.id %>", "<%= config.bin %> <%= command.id %> --gameId 0c179fc4", "<%= config.bin %> <%= command.id %> --platform ios" ]; static flags = { gameId: Flags.string({ char: "g", description: "The ID of the game" }), platform: Flags.string({ char: "p", description: "The platform to check status for (ios, android)", options: ["android", "ios"] }) }; async run() { const gameId = this.getGameId(); if (!gameId) { this.error("No game found - please run `shipthis game wizard` or specify a game ID with --gameId", { exit: 1 }); } render( /* @__PURE__ */ jsx(CommandGame, { command: this, children: /* @__PURE__ */ jsx(GameStatus$1, { onComplete: (exitCode) => process.exit(exitCode) }) }) ); } } export { GameStatus as default };