...
This commit is contained in:
parent
707875fd6a
commit
32f786133a
2 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/omnipunk/cli/mtool"
|
"github.com/di4f/cli/mtool"
|
||||||
"strconv"
|
"strconv"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
@ -35,7 +35,7 @@ var (
|
||||||
}).Desc(
|
}).Desc(
|
||||||
"first sub tool",
|
"first sub tool",
|
||||||
),
|
),
|
||||||
mtool.T("second").Func(func(flags *mtool.Flags){
|
mtool.T("second").Func(func(flags *mtool.Flags) {
|
||||||
fmt.Println("called the second", flags.Parse())
|
fmt.Println("called the second", flags.Parse())
|
||||||
}).Desc(
|
}).Desc(
|
||||||
"second sub tool",
|
"second sub tool",
|
||||||
|
@ -46,7 +46,7 @@ var (
|
||||||
).Desc(
|
).Desc(
|
||||||
"the testing program to show how to use the lib",
|
"the testing program to show how to use the lib",
|
||||||
).Ldesc(
|
).Ldesc(
|
||||||
"this is the long description where you "+
|
"this is the long description where you " +
|
||||||
"can put anything you want about the program",
|
"can put anything you want about the program",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,3 +1,3 @@
|
||||||
module github.com/omnipunk/cli
|
module github.com/di4f/cli
|
||||||
|
|
||||||
go 1.18
|
go 1.18
|
||||||
|
|
Loading…
Reference in a new issue