diff --git a/go.mod b/go.mod index 6d66455..c84ac99 100644 --- a/go.mod +++ b/go.mod @@ -5,4 +5,5 @@ go 1.18 require ( github.com/surdeus/anko v0.0.0-20230614164331-b18c1239c632 // indirect github.com/surdeus/gomtool v0.0.0-20230324173629-09da5dcd0204 // indirect + github.com/surdeus/goscript v0.0.0-20230620135552-456d895c0747 // indirect ) diff --git a/go.sum b/go.sum index 5e887b7..60cdcb7 100644 --- a/go.sum +++ b/go.sum @@ -22,3 +22,5 @@ github.com/surdeus/gomtool v0.0.0-20230324171804-d106f3a7c3da h1:Wm3ZbhHuH/26B4/ github.com/surdeus/gomtool v0.0.0-20230324171804-d106f3a7c3da/go.mod h1:48d4QXOu0MwH0fbqseBInNdS6WiJ0+EzZU9K5sGu4uo= github.com/surdeus/gomtool v0.0.0-20230324173629-09da5dcd0204 h1:eNKjFr0w81mb1d3i2P4uAEIzgc6VVTRJJy6BDWq2vK0= github.com/surdeus/gomtool v0.0.0-20230324173629-09da5dcd0204/go.mod h1:48d4QXOu0MwH0fbqseBInNdS6WiJ0+EzZU9K5sGu4uo= +github.com/surdeus/goscript v0.0.0-20230620135552-456d895c0747 h1:joKa0jw9NNjL2gfMaUP841AGb74737MiQVh0Nsr7NyQ= +github.com/surdeus/goscript v0.0.0-20230620135552-456d895c0747/go.mod h1:zuG5tMqJ18/QMypvrfgaZw3rR/t4mlWPx4pQmQeq6zU= diff --git a/main.go b/main.go index 42336dc..fb60afc 100644 --- a/main.go +++ b/main.go @@ -31,7 +31,7 @@ import ( "github.com/surdeus/goblin/src/tool/wc" "github.com/surdeus/goblin/src/tool/whoami" "github.com/surdeus/goblin/src/tool/yes" - "github.com/surdeus/goblin/src/tool/anko" + "github.com/surdeus/goblin/src/tool/script" ) func main() { @@ -76,8 +76,8 @@ func main() { "link files", "", }, - "anko": mtool.Tool{ - anko.Run, + "script": mtool.Tool{ + script.Run, "run embedded anko", "", }, diff --git a/src/tool/anko/main.go b/src/tool/script/main.go similarity index 95% rename from src/tool/anko/main.go rename to src/tool/script/main.go index 6ccead5..7614c66 100644 --- a/src/tool/anko/main.go +++ b/src/tool/script/main.go @@ -1,6 +1,6 @@ // +build !appengine -package anko +package script import ( "bufio" @@ -11,11 +11,11 @@ import ( "os" "strings" - "github.com/surdeus/anko/core" - "github.com/surdeus/anko/env" - _ "github.com/surdeus/anko/packages" - "github.com/surdeus/anko/parser" - "github.com/surdeus/anko/vm" + "github.com/surdeus/goscript/core" + "github.com/surdeus/goscript/env" + _ "github.com/surdeus/goscript/packages" + "github.com/surdeus/goscript/parser" + "github.com/surdeus/goscript/vm" "github.com/surdeus/gomtool/src/mtool" "os/exec" )