Using the renamed version of anko.
This commit is contained in:
parent
458f777fd8
commit
f092240f7d
4 changed files with 12 additions and 9 deletions
1
go.mod
1
go.mod
|
@ -5,4 +5,5 @@ go 1.18
|
||||||
require (
|
require (
|
||||||
github.com/surdeus/anko v0.0.0-20230614164331-b18c1239c632 // indirect
|
github.com/surdeus/anko v0.0.0-20230614164331-b18c1239c632 // indirect
|
||||||
github.com/surdeus/gomtool v0.0.0-20230324173629-09da5dcd0204 // indirect
|
github.com/surdeus/gomtool v0.0.0-20230324173629-09da5dcd0204 // indirect
|
||||||
|
github.com/surdeus/goscript v0.0.0-20230620135552-456d895c0747 // indirect
|
||||||
)
|
)
|
||||||
|
|
2
go.sum
2
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-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 h1:eNKjFr0w81mb1d3i2P4uAEIzgc6VVTRJJy6BDWq2vK0=
|
||||||
github.com/surdeus/gomtool v0.0.0-20230324173629-09da5dcd0204/go.mod h1:48d4QXOu0MwH0fbqseBInNdS6WiJ0+EzZU9K5sGu4uo=
|
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=
|
||||||
|
|
6
main.go
6
main.go
|
@ -31,7 +31,7 @@ import (
|
||||||
"github.com/surdeus/goblin/src/tool/wc"
|
"github.com/surdeus/goblin/src/tool/wc"
|
||||||
"github.com/surdeus/goblin/src/tool/whoami"
|
"github.com/surdeus/goblin/src/tool/whoami"
|
||||||
"github.com/surdeus/goblin/src/tool/yes"
|
"github.com/surdeus/goblin/src/tool/yes"
|
||||||
"github.com/surdeus/goblin/src/tool/anko"
|
"github.com/surdeus/goblin/src/tool/script"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -76,8 +76,8 @@ func main() {
|
||||||
"link files",
|
"link files",
|
||||||
"",
|
"",
|
||||||
},
|
},
|
||||||
"anko": mtool.Tool{
|
"script": mtool.Tool{
|
||||||
anko.Run,
|
script.Run,
|
||||||
"run embedded anko",
|
"run embedded anko",
|
||||||
"",
|
"",
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// +build !appengine
|
// +build !appengine
|
||||||
|
|
||||||
package anko
|
package script
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
|
@ -11,11 +11,11 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/surdeus/anko/core"
|
"github.com/surdeus/goscript/core"
|
||||||
"github.com/surdeus/anko/env"
|
"github.com/surdeus/goscript/env"
|
||||||
_ "github.com/surdeus/anko/packages"
|
_ "github.com/surdeus/goscript/packages"
|
||||||
"github.com/surdeus/anko/parser"
|
"github.com/surdeus/goscript/parser"
|
||||||
"github.com/surdeus/anko/vm"
|
"github.com/surdeus/goscript/vm"
|
||||||
"github.com/surdeus/gomtool/src/mtool"
|
"github.com/surdeus/gomtool/src/mtool"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
)
|
)
|
Loading…
Reference in a new issue