mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-26 00:41:27 -06:00
35 lines
685 B
Go
35 lines
685 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package command
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/mitchellh/cli"
|
|
)
|
|
|
|
// 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"
|
|
}
|