@icarusmx/creta 1.4.0 → 1.4.1
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/lib/cli/index.js +3 -3
- package/package.json +1 -1
package/lib/cli/index.js
CHANGED
|
@@ -9,9 +9,6 @@ import { CretaCodeSession } from '../session.js'
|
|
|
9
9
|
import { greetUser } from '../utils/greeting.js'
|
|
10
10
|
|
|
11
11
|
async function executeMainMenu() {
|
|
12
|
-
// Greet user (ask name if first time, or show stats if returning)
|
|
13
|
-
await greetUser()
|
|
14
|
-
|
|
15
12
|
const menu = new MenuBuilder(MAIN_MENU_CONFIG)
|
|
16
13
|
|
|
17
14
|
while (true) {
|
|
@@ -75,6 +72,9 @@ export async function handleCommand(command, args = []) {
|
|
|
75
72
|
export async function runCLI(args = []) {
|
|
76
73
|
const [command, ...rest] = args
|
|
77
74
|
|
|
75
|
+
// Greet user (ask name if first time, or show stats if returning)
|
|
76
|
+
await greetUser()
|
|
77
|
+
|
|
78
78
|
if (!command) {
|
|
79
79
|
await executeMainMenu()
|
|
80
80
|
return 0
|