easc 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/utils/cli.ts +16 -0
package/package.json
CHANGED
package/src/utils/cli.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import yargs, { type Argv, type CommandModule, type Options } from "yargs";
|
|
2
2
|
import { select } from "@inquirer/prompts";
|
|
3
|
+
import chalk from "chalk";
|
|
3
4
|
|
|
4
5
|
interface CommandInfo {
|
|
5
6
|
command: string;
|
|
@@ -18,6 +19,19 @@ class InteractiveCLI {
|
|
|
18
19
|
this.yargsInstance = yargs(args);
|
|
19
20
|
}
|
|
20
21
|
|
|
22
|
+
private showWelcome() {
|
|
23
|
+
console.clear();
|
|
24
|
+
console.log();
|
|
25
|
+
console.log(chalk.cyan(" ___ __ _ ___ ___ "));
|
|
26
|
+
console.log(chalk.cyan(" / _ \\/ _` / __|/ __|"));
|
|
27
|
+
console.log(chalk.blue("| __/ (_| \\__ \\ (__ "));
|
|
28
|
+
console.log(chalk.blue(" \\___|\\__,_|___/\\___|"));
|
|
29
|
+
console.log();
|
|
30
|
+
console.log(chalk.gray(" Expo App Services for Cloudflare"));
|
|
31
|
+
console.log(chalk.yellow("════════════════════════════════════"));
|
|
32
|
+
console.log();
|
|
33
|
+
}
|
|
34
|
+
|
|
21
35
|
private async promptForMissingArgs(
|
|
22
36
|
argv: any,
|
|
23
37
|
options: Record<string, Options>,
|
|
@@ -126,6 +140,8 @@ class InteractiveCLI {
|
|
|
126
140
|
return;
|
|
127
141
|
}
|
|
128
142
|
|
|
143
|
+
this.showWelcome();
|
|
144
|
+
|
|
129
145
|
const command = await select({
|
|
130
146
|
message: "Select a command:",
|
|
131
147
|
choices: [
|