2023-05-02 11:33:06 -04:00
|
|
|
// Copyright IBM Corp. 2014, 2026
|
2023-08-10 18:43:27 -04:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
2023-05-02 11:33:06 -04:00
|
|
|
|
2023-02-14 09:08:47 -05:00
|
|
|
package command
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"strings"
|
|
|
|
|
|
2023-12-20 06:04:10 -05:00
|
|
|
"github.com/hashicorp/cli"
|
2023-02-14 09:08:47 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// MetadataCommand is a Command implementation that just shows help for
|
|
|
|
|
// the subcommands nested below it.
|
|
|
|
|
type MetadataCommand struct {
|
|
|
|
|
Meta
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *MetadataCommand) Run(args []string) int {
|
|
|
|
|
return cli.RunResultHelp
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *MetadataCommand) Help() string {
|
|
|
|
|
helpText := `
|
|
|
|
|
Usage: terraform [global options] metadata <subcommand> [options] [args]
|
|
|
|
|
|
|
|
|
|
This command has subcommands for metadata related purposes.
|
|
|
|
|
|
|
|
|
|
`
|
|
|
|
|
return strings.TrimSpace(helpText)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *MetadataCommand) Synopsis() string {
|
|
|
|
|
return "Metadata related commands"
|
|
|
|
|
}
|