mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-26 03:44:44 +01:00
17 lines
405 B
JavaScript
17 lines
405 B
JavaScript
|
const args = Array.from(process.argv);
|
||
|
const command = args.pop();
|
||
|
switch (command) {
|
||
|
case "--version":
|
||
|
console.log(
|
||
|
"⛅️ wrangler 1.1.1 (update available 1.2.3)\n" +
|
||
|
"-------------------------------------------------------",
|
||
|
);
|
||
|
process.exit(0);
|
||
|
case "action-test":
|
||
|
console.log("Test successful.");
|
||
|
process.exit(0);
|
||
|
default:
|
||
|
console.error("Invalid command");
|
||
|
process.exit(1);
|
||
|
}
|