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

Method Help

command/namespace_create.go:29–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29func (c *NamespaceCreateCommand) Help() string {
30 helpText := `
31Usage: vault namespace create [options] PATH
32
33 Create a child namespace. The namespace created will be relative to the
34 namespace provided in either the VAULT_NAMESPACE environment variable or
35 -namespace CLI flag.
36
37 Create a child namespace (e.g. ns1/):
38
39 $ vault namespace create ns1
40
41 Create a child namespace from a parent namespace (e.g. ns1/ns2/):
42
43 $ vault namespace create -namespace=ns1 ns2
44
45` + c.Flags().Help()
46
47 return strings.TrimSpace(helpText)
48}
49
50func (c *NamespaceCreateCommand) Flags() *FlagSets {
51 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