| 27 | } |
| 28 | |
| 29 | func (c *NamespaceCreateCommand) Help() string { |
| 30 | helpText := ` |
| 31 | Usage: 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 | |
| 50 | func (c *NamespaceCreateCommand) Flags() *FlagSets { |
| 51 | set := c.flagSet(FlagSetHTTP | FlagSetOutputField | FlagSetOutputFormat) |