Monorepo for Tangled
tangled.org
1package guard
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: "guard",
13 Usage: "role-based access control for git over ssh (not for manual use)",
14 Action: Run,
15 Flags: []cli.Flag{
16 &cli.StringFlag{
17 Name: "user",
18 Usage: "allowed git user",
19 Required: true,
20 },
21 },
22 }
23}
24
25func Run(ctx context.Context, cmd *cli.Command) error {
26 l := log.FromContext(ctx)
27 l = log.SubLogger(l, cmd.Name)
28 ctx = log.IntoContext(ctx, l)
29
30 panic("unimplemented")
31}