MCPcopy Create free account
hub / github.com/hashicorp/vault / Help

Method Help

command/namespace_patch.go:33–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33func (c *NamespacePatchCommand) Help() string {
34 helpText := `
35Usage: vault namespace patch [options] PATH
36
37 Patch an existing namespace. The namespace patched will be relative to the
38 namespace provided in either the VAULT_NAMESPACE environment variable or
39 -namespace CLI flag.
40
41 Patch an existing child namespace by adding and removing custom-metadata (e.g. ns1/):
42
43 $ vault namespace patch -custom-metadata=foo=abc -remove-custom-metadata=bar ns1
44
45 Patch an existing child namespace from a parent namespace (e.g. ns1/ns2/):
46
47 $ vault namespace patch -namespace=ns1 -custom-metadata=foo=abc ns2
48
49` + c.Flags().Help()
50
51 return strings.TrimSpace(helpText)
52}
53
54func (c *NamespacePatchCommand) Flags() *FlagSets {
55 set := c.flagSet(FlagSetHTTP | FlagSetOutputField | FlagSetOutputFormat)

Callers

nothing calls this directly

Calls 2

FlagsMethod · 0.95
HelpMethod · 0.65

Tested by

no test coverage detected