MCPcopy Create free account
hub / github.com/brimdata/super / Run

Method Run

cmd/super/db/auth/verify.go:30–53  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

28}
29
30func (c *VerifyCommand) Run(args []string) error {
31 ctx, cleanup, err := c.Init()
32 if err != nil {
33 return err
34 }
35 defer cleanup()
36 if len(args) > 0 {
37 return errors.New("verify command takes no arguments")
38 }
39 conn, err := c.DBFlags.Connection()
40 if err != nil {
41 return err
42 }
43 res, err := conn.AuthIdentity(ctx)
44 if err != nil {
45 return err
46 }
47 b, err := json.MarshalIndent(res, "", "\t")
48 if err != nil {
49 return err
50 }
51 fmt.Println(string(b))
52 return nil
53}

Callers

nothing calls this directly

Calls 4

NewMethod · 0.80
ConnectionMethod · 0.80
AuthIdentityMethod · 0.80
InitMethod · 0.65

Tested by

no test coverage detected