Fit new username and build system.

This commit is contained in:
k1574 2022-08-06 07:45:08 +05:00
parent b503187275
commit 9a3512c218
26 changed files with 60 additions and 58 deletions

4
go.mod
View file

@ -1,5 +1,5 @@
module github.com/k1574/goblin module github.com/surdeus/goblin
go 1.18 go 1.18
require github.com/k1574/gomtool v0.0.0-20220616060224-023d1559d777 // indirect require github.com/surdeus/gomtool v0.0.0-20220806023210-bb1d6be89aa1 // indirect

2
go.sum
View file

@ -1,2 +1,4 @@
github.com/k1574/gomtool v0.0.0-20220616060224-023d1559d777 h1:r4Wm40GwE7GNC3VbIwVGtD8dPDw5NDsI5xlpcYF5Nv4= github.com/k1574/gomtool v0.0.0-20220616060224-023d1559d777 h1:r4Wm40GwE7GNC3VbIwVGtD8dPDw5NDsI5xlpcYF5Nv4=
github.com/k1574/gomtool v0.0.0-20220616060224-023d1559d777/go.mod h1:XT2+xWYiSEE6eX/nBgE6UnfIrBfijwPfv4fNJSVD+SA= github.com/k1574/gomtool v0.0.0-20220616060224-023d1559d777/go.mod h1:XT2+xWYiSEE6eX/nBgE6UnfIrBfijwPfv4fNJSVD+SA=
github.com/surdeus/gomtool v0.0.0-20220806023210-bb1d6be89aa1 h1:eTeqQV207H2ho0QFMxgxI75oT8E69aExmX6f6oltl9Y=
github.com/surdeus/gomtool v0.0.0-20220806023210-bb1d6be89aa1/go.mod h1:48d4QXOu0MwH0fbqseBInNdS6WiJ0+EzZU9K5sGu4uo=

View file

@ -1,54 +0,0 @@
package main
import(
"github.com/k1574/gomtool/m/multitool"
"github.com/k1574/goblin/m/tool/cat"
"github.com/k1574/goblin/m/tool/echo"
"github.com/k1574/goblin/m/tool/mkdir"
"github.com/k1574/goblin/m/tool/gtrue"
"github.com/k1574/goblin/m/tool/gfalse"
"github.com/k1574/goblin/m/tool/sort"
"github.com/k1574/goblin/m/tool/tac"
"github.com/k1574/goblin/m/tool/ls"
"github.com/k1574/goblin/m/tool/yes"
"github.com/k1574/goblin/m/tool/date"
"github.com/k1574/goblin/m/tool/uniq"
"github.com/k1574/goblin/m/tool/quote"
"github.com/k1574/goblin/m/tool/urlprs"
"github.com/k1574/goblin/m/tool/noext"
"github.com/k1574/goblin/m/tool/mergelbl"
"github.com/k1574/goblin/m/tool/basename"
"github.com/k1574/goblin/m/tool/ec"
"github.com/k1574/goblin/m/tool/read"
"github.com/k1574/goblin/m/tool/wc"
"github.com/k1574/goblin/m/tool/ftest"
"github.com/k1574/goblin/m/tool/grange"
)
func main() {
tools := multitool.Tools {
"basename" : basename.Run,
"cat": cat.Run,
"mkdir" : mkdir.Run,
"echo" : echo.Run,
"true" : gtrue.Run,
"false" : gfalse.Run,
"sort" : sort.Run,
"tac" : tac.Run,
"ls" : ls.Run,
"yes" : yes.Run,
"date" : date.Run,
"uniq" : uniq.Run,
"quote" : quote.Run,
"urlprs" : urlprs.Run,
"noext" : noext.Run,
"mergelbl" : mergelbl.Run,
"ec" : ec.Run,
"read" : read.Run,
"wc" : wc.Run,
"ftest" : ftest.Run,
"range" : grange.Run,
}
multitool.Main("goblin", tools)
}

54
src/cmd/goblin/main.go Normal file
View file

@ -0,0 +1,54 @@
package main
import(
"github.com/surdeus/gomtool/src/multitool"
"github.com/surdeus/goblin/src/tool/cat"
"github.com/surdeus/goblin/src/tool/echo"
"github.com/surdeus/goblin/src/tool/mkdir"
"github.com/surdeus/goblin/src/tool/gtrue"
"github.com/surdeus/goblin/src/tool/gfalse"
"github.com/surdeus/goblin/src/tool/sort"
"github.com/surdeus/goblin/src/tool/tac"
"github.com/surdeus/goblin/src/tool/ls"
"github.com/surdeus/goblin/src/tool/yes"
"github.com/surdeus/goblin/src/tool/date"
"github.com/surdeus/goblin/src/tool/uniq"
"github.com/surdeus/goblin/src/tool/quote"
"github.com/surdeus/goblin/src/tool/urlprs"
"github.com/surdeus/goblin/src/tool/noext"
"github.com/surdeus/goblin/src/tool/mergelbl"
"github.com/surdeus/goblin/src/tool/basename"
"github.com/surdeus/goblin/src/tool/ec"
"github.com/surdeus/goblin/src/tool/read"
"github.com/surdeus/goblin/src/tool/wc"
"github.com/surdeus/goblin/src/tool/ftest"
"github.com/surdeus/goblin/src/tool/grange"
)
func main() {
tools := multitool.Tools {
"basename" : basename.Run,
"cat": cat.Run,
"mkdir" : mkdir.Run,
"echo" : echo.Run,
"true" : gtrue.Run,
"false" : gfalse.Run,
"sort" : sort.Run,
"tac" : tac.Run,
"ls" : ls.Run,
"yes" : yes.Run,
"date" : date.Run,
"uniq" : uniq.Run,
"quote" : quote.Run,
"urlprs" : urlprs.Run,
"noext" : noext.Run,
"mergelbl" : mergelbl.Run,
"ec" : ec.Run,
"read" : read.Run,
"wc" : wc.Run,
"ftest" : ftest.Run,
"range" : grange.Run,
}
multitool.Main("goblin", tools)
}

View file

@ -5,7 +5,7 @@ import (
"os" "os"
"sort" "sort"
"flag" "flag"
"github.com/k1574/goblin/m/input" "github.com/surdeus/goblin/src/input"
) )
func Run(args []string) { func Run(args []string) {

View file

@ -6,7 +6,7 @@ import(
"fmt" "fmt"
"flag" "flag"
"strings" "strings"
"github.com/k1574/goblin/m/input" "github.com/surdeus/goblin/src/input"
) )
var( var(
nArg int nArg int