mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-15 13:00:32 -05:00
* Update `internal/command` to use OpenTF Signed-off-by: Jakub Martin <kubam@spacelift.io> * Fix e2e tests. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Fix e2e tests. Signed-off-by: Jakub Martin <kubam@spacelift.io> * Fix Signed-off-by: Jakub Martin <kubam@spacelift.io> * Rewrite message. Signed-off-by: Jakub Martin <kubam@spacelift.io> --------- Signed-off-by: Jakub Martin <kubam@spacelift.io>
35 lines
682 B
Go
35 lines
682 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: opentf [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"
|
|
}
|