File size: 734 Bytes
9c12830
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Android pinning is retired; the shared mobile cutter owns release metadata.
import { isDirectRunUrl } from "./lib/direct-run.mjs";

const RETIRED_MESSAGE =
  "Android version pinning is retired. Run the shared mobile cutter in scripts/mobile-release-version.ts.";

function printUsage(): void {
  process.stdout.write(`${RETIRED_MESSAGE}\n`);
}

export async function main(argv: string[]): Promise<number> {
  if (argv.includes("-h") || argv.includes("--help")) {
    printUsage();
    return 0;
  }
  process.stderr.write(`${RETIRED_MESSAGE}\n`);
  return 1;
}

if (isDirectRunUrl(process.argv[1], import.meta.url)) {
  const exitCode = await main(process.argv.slice(2));
  if (exitCode !== 0) {
    process.exit(exitCode);
  }
}