github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/internal/command/metadata_command.go (about) 1 package command 2 3 import ( 4 "strings" 5 6 "github.com/mitchellh/cli" 7 ) 8 9 // MetadataCommand is a Command implementation that just shows help for 10 // the subcommands nested below it. 11 type MetadataCommand struct { 12 Meta 13 } 14 15 func (c *MetadataCommand) Run(args []string) int { 16 return cli.RunResultHelp 17 } 18 19 func (c *MetadataCommand) Help() string { 20 helpText := ` 21 Usage: terraform [global options] metadata <subcommand> [options] [args] 22 23 This command has subcommands for metadata related purposes. 24 25 ` 26 return strings.TrimSpace(helpText) 27 } 28 29 func (c *MetadataCommand) Synopsis() string { 30 return "Metadata related commands" 31 }