diff --git a/.gitignore b/.gitignore index 86daf54..72cf98f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +*.exe exe diff --git a/src/cmd/test/main.go b/cmd/test/main.go similarity index 83% rename from src/cmd/test/main.go rename to cmd/test/main.go index a42c305..8ec85d7 100644 --- a/src/cmd/test/main.go +++ b/cmd/test/main.go @@ -1,27 +1,27 @@ package main -import( - "github.com/mojosa-software/gomtool/src/mtool" +import ( + "github.com/reklesio/mtool" "strconv" "fmt" ) -var( +var ( tools = mtool.Tools{ - "echo" : mtool.Tool{ + "echo": mtool.Tool{ func(flags *mtool.Flags) { var b bool flags.BoolVar(&b, "b", false, "the check flag") flags.Parse() - + args := flags.Args() - + fmt.Println(args) }, "print string to standard output string", "[str1 str2 ... strN]", }, - "sum" : mtool.Tool{ + "sum": mtool.Tool{ func(flags *mtool.Flags) { flags.Parse() args := flags.Args() @@ -38,4 +38,3 @@ var( func main() { mtool.Main("test", tools) } - diff --git a/go.mod b/go.mod index 35c4454..25d99de 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/mojosa-software/gomtool +module github.com/reklesio/mtool go 1.18 diff --git a/src/mtool/main.go b/main.go similarity index 100% rename from src/mtool/main.go rename to main.go diff --git a/mkconfig b/mkconfig deleted file mode 100644 index b3be456..0000000 --- a/mkconfig +++ /dev/null @@ -1,5 +0,0 @@ -MKSHELL = sh -<$(MKINCDIR)/config -PKG_NAME = goblin -CC = cc - diff --git a/mkfile b/mkfile deleted file mode 100644 index 0c5baf7..0000000 --- a/mkfile +++ /dev/null @@ -1,3 +0,0 @@ -