feat: use goreleaser to generate linux packages

This commit is contained in:
2024-04-26 15:09:11 +02:00
parent 768393adc8
commit b56b50ff23
10 changed files with 150 additions and 51 deletions

View File

@ -10,11 +10,12 @@ import (
"gitlab.com/wpetit/goweb/logger"
)
func Main(name string, usage string, commands ...*cli.Command) {
func Main(name string, usage string, version string, commands ...*cli.Command) {
app := &cli.App{
Name: name,
Usage: usage,
Commands: commands,
Version: version,
Before: func(ctx *cli.Context) error {
workdir := ctx.String("workdir")
// Switch to new working directory if defined