From bbe64fae523e42e8add20fbe0ce5858f0e60c915 Mon Sep 17 00:00:00 2001 From: surdeus Date: Mon, 23 Oct 2023 14:30:51 +0300 Subject: [PATCH] Rebranding and restructuring. --- .gitignore | 1 + {src/cmd => cmd}/test/main.go | 15 +++++++-------- go.mod | 2 +- src/mtool/main.go => main.go | 0 mkconfig | 5 ----- mkfile | 3 --- readme => readme.md | 4 ++-- 7 files changed, 11 insertions(+), 19 deletions(-) rename {src/cmd => cmd}/test/main.go (83%) rename src/mtool/main.go => main.go (100%) delete mode 100644 mkconfig delete mode 100644 mkfile rename readme => readme.md (69%) 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 @@ -