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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
2
go.mod
2
go.mod
|
@ -1,3 +1,3 @@
|
|||
module github.com/mojosa-software/gomtool
|
||||
module github.com/reklesio/mtool
|
||||
|
||||
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