File tree 2 files changed +6
-2
lines changed 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import (
10
10
// App struct
11
11
type App struct {
12
12
ctx context.Context
13
+ env * object.Environment
13
14
}
14
15
15
16
// NewApp creates a new App application struct
@@ -25,6 +26,5 @@ func (a *App) startup(ctx context.Context) {
25
26
26
27
// Greet returns a greeting for the given name
27
28
func (a * App ) Start (name string ) (string , []string ) {
28
- env := object .NewEnvironment ()
29
- return repl .Start (name , env )
29
+ return repl .Start (name , a .env )
30
30
}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package main
3
3
import (
4
4
"embed"
5
5
6
+ "github.com/NuruProgramming/NuruIDLE/object"
6
7
"github.com/wailsapp/wails/v2"
7
8
"github.com/wailsapp/wails/v2/pkg/options"
8
9
"github.com/wailsapp/wails/v2/pkg/options/assetserver"
@@ -14,6 +15,9 @@ var assets embed.FS
14
15
func main () {
15
16
// Create an instance of the app structure
16
17
app := NewApp ()
18
+ env := object .NewEnvironment ()
19
+
20
+ app .env = env
17
21
18
22
// Create application with options
19
23
err := wails .Run (& options.App {
You can’t perform that action at this time.
0 commit comments