shipthis
Version:
ShipThis manages building and uploading your Godot games to the App Store and Google Play.
74 lines (71 loc) • 2.24 kB
JavaScript
import { jsx } from 'react/jsx-runtime';
import { Flags } from '@oclif/core';
import { render } from 'ink';
import { B as BaseAuthenticatedCommand } from '../../index-BwnzoldS.js';
import 'ink-spinner';
import 'node:crypto';
import 'node:fs';
import 'node:path';
import 'node:readline';
import 'node:url';
import 'readline-sync';
import 'luxon';
import 'axios';
import 'isomorphic-git';
import '@tanstack/react-query';
import 'react';
import 'crypto-js';
import 'uuid';
import 'fast-glob';
import 'yazl';
import 'socket.io-client';
import 'fullscreen-ink';
import { a as GameStatus$1 } from '../../GameStatus-joyHPy0f.js';
import 'string-length';
import 'strip-ansi';
import 'open';
import '@inkjs/ui';
import '../../ejs-DirFZbza.js';
import 'marked';
import 'marked-terminal';
import 'qrcode';
import '../../index-hoHfGrjg.js';
import { C as CommandGame } from '../../CommandGame-D2NqytWc.js';
import '@expo/apple-utils/build/index.js';
import 'deepmerge';
import 'ini';
import '../../index-CJWMt1s-.js';
import '../../StatusTable-DzRWcMr4.js';
import '../../Title-BCQtayg6.js';
import '../../NextSteps-DbJHmscQ.js';
import 'fs';
import 'path';
import '../../useAndroidServiceAccountTestResult-CwKeW0ED.js';
import '../../Command-DN1j3tjt.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 };