Rebranding and restructuring.
This commit is contained in:
parent
73d5a2f194
commit
bbe64fae52
7 changed files with 11 additions and 19 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
|
*.exe
|
||||||
exe
|
exe
|
||||||
|
|
|
@ -1,27 +1,27 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import(
|
import (
|
||||||
"github.com/mojosa-software/gomtool/src/mtool"
|
"github.com/reklesio/mtool"
|
||||||
"strconv"
|
"strconv"
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
|
|
||||||
var(
|
var (
|
||||||
tools = mtool.Tools{
|
tools = mtool.Tools{
|
||||||
"echo" : mtool.Tool{
|
"echo": mtool.Tool{
|
||||||
func(flags *mtool.Flags) {
|
func(flags *mtool.Flags) {
|
||||||
var b bool
|
var b bool
|
||||||
flags.BoolVar(&b, "b", false, "the check flag")
|
flags.BoolVar(&b, "b", false, "the check flag")
|
||||||
flags.Parse()
|
flags.Parse()
|
||||||
|
|
||||||
args := flags.Args()
|
args := flags.Args()
|
||||||
|
|
||||||
fmt.Println(args)
|
fmt.Println(args)
|
||||||
},
|
},
|
||||||
"print string to standard output string",
|
"print string to standard output string",
|
||||||
"[str1 str2 ... strN]",
|
"[str1 str2 ... strN]",
|
||||||
},
|
},
|
||||||
"sum" : mtool.Tool{
|
"sum": mtool.Tool{
|
||||||
func(flags *mtool.Flags) {
|
func(flags *mtool.Flags) {
|
||||||
flags.Parse()
|
flags.Parse()
|
||||||
args := flags.Args()
|
args := flags.Args()
|
||||||
|
@ -38,4 +38,3 @@ var(
|
||||||
func main() {
|
func main() {
|
||||||
mtool.Main("test", tools)
|
mtool.Main("test", tools)
|
||||||
}
|
}
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,3 +1,3 @@
|
||||||
module github.com/mojosa-software/gomtool
|
module github.com/reklesio/mtool
|
||||||
|
|
||||||
go 1.18
|
go 1.18
|
||||||
|
|
5
mkconfig
5
mkconfig
|
@ -1,5 +0,0 @@
|
||||||
MKSHELL = sh
|
|
||||||
<$(MKINCDIR)/config
|
|
||||||
PKG_NAME = goblin
|
|
||||||
CC = cc
|
|
||||||
|
|
3
mkfile
3
mkfile
|
@ -1,3 +0,0 @@
|
||||||
<mkconfig
|
|
||||||
<$MKINCDIR/gobuild
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# gomtool
|
# mtool
|
||||||
|
|
||||||
Go multitool package. Suits the task of multiple programs in one like in "goblin".
|
Go multitool package. Suits the task of multiple programs in one like in "tk".
|
||||||
|
|
Loading…
Reference in a new issue