mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 10:37:56 +00:00 
			
		
		
		
	Move meta into its own package
This commit is contained in:
		| @@ -3,15 +3,17 @@ package command | ||||
| import ( | ||||
| 	"fmt" | ||||
| 	"strings" | ||||
|  | ||||
| 	"github.com/hashicorp/vault/meta" | ||||
| ) | ||||
|  | ||||
| // PathHelpCommand is a Command that lists the mounts. | ||||
| type PathHelpCommand struct { | ||||
| 	Meta | ||||
| 	meta.Meta | ||||
| } | ||||
|  | ||||
| func (c *PathHelpCommand) Run(args []string) int { | ||||
| 	flags := c.Meta.FlagSet("help", FlagSetDefault) | ||||
| 	flags := c.Meta.FlagSet("help", meta.FlagSetDefault) | ||||
| 	flags.Usage = func() { c.Ui.Error(c.Help()) } | ||||
| 	if err := flags.Parse(args); err != nil { | ||||
| 		return 1 | ||||
| @@ -70,6 +72,6 @@ Usage: vault path-help [options] path | ||||
|  | ||||
| General Options: | ||||
|  | ||||
|   ` + generalOptionsUsage() | ||||
|   ` + meta.GeneralOptionsUsage() | ||||
| 	return strings.TrimSpace(helpText) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jeff Mitchell
					Jeff Mitchell