Rebranding and restructuring.

This commit is contained in:
Andrey Parhomenko 2023-10-23 14:30:51 +03:00
parent 73d5a2f194
commit bbe64fae52
7 changed files with 11 additions and 19 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
*.exe
exe

View file

@ -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
View file

@ -1,3 +1,3 @@
module github.com/mojosa-software/gomtool
module github.com/reklesio/mtool
go 1.18

View file

@ -1,5 +0,0 @@
MKSHELL = sh
<$(MKINCDIR)/config
PKG_NAME = goblin
CC = cc

3
mkfile
View file

@ -1,3 +0,0 @@
<mkconfig
<$MKINCDIR/gobuild

View file

@ -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".