MCPcopy Index your code
hub / github.com/smallstep/cli / removeAction

Function removeAction

command/ca/provisioner/webhook/remove.go:50–65  ·  view source on GitHub ↗
(ctx *cli.Context)

Source from the content-addressed store, hash-verified

48}
49
50func removeAction(ctx *cli.Context) (err error) {
51 if err := errs.NumberOfArguments(ctx, 2); err != nil {
52 return err
53 }
54
55 args := ctx.Args()
56
57 provisionerName := args.Get(0)
58
59 client, err := newCRUDClient(ctx, ctx.String("ca-config"))
60 if err != nil {
61 return err
62 }
63
64 return client.DeleteProvisionerWebhook(provisionerName, args.Get(1))
65}

Callers

nothing calls this directly

Calls 3

newCRUDClientFunction · 0.70
StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…