1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package main
import (
"context"
"github.com/grindlemire/gothem-stack/magefiles/cmd"
"github.com/pkg/errors"
"go.uber.org/zap"
)
func templ(ctx context.Context) error {
config, err := GetConfig(ctx)
if err != nil {
return err
}
zap.S().Infof("mage running with config: %+v", config)
err = cmd.Run(ctx,
cmd.WithCMD(
"templ",
"generate",
),
)
if err != nil {
return errors.Wrap(err, "generating templ files")
}
return nil
}
|