chore: init project

This commit is contained in:
2026-01-24 07:18:24 +01:00
commit 0a07b85e4e
3 changed files with 40 additions and 0 deletions

5
go.mod Normal file
View 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
View 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
View 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)
}
}