Monorepo for Tangled
tangled.org
1package hook
2
3import (
4 "context"
5
6 "github.com/urfave/cli/v3"
7 "tangled.org/core/log"
8)
9
10func Command() *cli.Command {
11 return &cli.Command{
12 Name: "hook",
13 Usage: "run git hooks",
14 Action: Run,
15 Flags: []cli.Flag{
16 // TODO:
17 },
18 }
19}
20
21func Run(ctx context.Context, cmd *cli.Command) error {
22 l := log.FromContext(ctx)
23 l = log.SubLogger(l, cmd.Name)
24 ctx = log.IntoContext(ctx, l)
25
26 panic("unimplemented")
27}