chore: init project
This commit is contained in:
5
go.mod
Normal file
5
go.mod
Normal file
@@ -0,0 +1,5 @@
|
||||
module git.arnef.de/arnef/wt
|
||||
|
||||
go 1.25.5
|
||||
|
||||
require github.com/urfave/cli/v3 v3.6.2 // indirect
|
||||
2
go.sum
Normal file
2
go.sum
Normal file
@@ -0,0 +1,2 @@
|
||||
github.com/urfave/cli/v3 v3.6.2 h1:lQuqiPrZ1cIz8hz+HcrG0TNZFxU70dPZ3Yl+pSrH9A8=
|
||||
github.com/urfave/cli/v3 v3.6.2/go.mod h1:ysVLtOEmg2tOy6PknnYVhDoouyC/6N42TMeoMzskhso=
|
||||
33
main.go
Normal file
33
main.go
Normal file
@@ -0,0 +1,33 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/urfave/cli/v3"
|
||||
)
|
||||
|
||||
func main (){
|
||||
cmd := cli.Command{
|
||||
Name: "wt",
|
||||
Commands: []*cli.Command{
|
||||
{
|
||||
Name: "init",
|
||||
},
|
||||
{
|
||||
Name: "clone",
|
||||
},
|
||||
{
|
||||
Name: "list",
|
||||
},
|
||||
{
|
||||
Name: "switch",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
if err := cmd.Run(context.Background(), os.Args); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user