8000 update main app · NuruProgramming/NuruIDLE@e4f17bd · GitHub
[go: up one dir, main page]

Skip to content

Commit e4f17bd

Browse files
committed
update main app
1 parent 2459bed commit e4f17bd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

app.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ package main
22

33
import (
44
"context"
5-
"fmt"
5+
6+
"github.com/NuruProgramming/NuruIDLE/object"
7+
"github.com/NuruProgramming/NuruIDLE/repl"
68
)
79

810
// App struct
@@ -22,6 +24,7 @@ func (a *App) startup(ctx context.Context) {
2224
}
2325

2426
// Greet returns a greeting for the given name
25-
func (a *App) Greet(name string) string {
26-
return fmt.Sprintf("Hello %s, It's show time!", name)
27+
func (a *App) Start(name string) (string, []string) {
28+
env := object.NewEnvironment()
29+
return repl.Start(name, env)
2730
}

0 commit comments

Comments
 (0)
0