Files
nomad/command/operator_root.go
2024-10-18 08:48:12 +01:00

35 lines
661 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
package command
import (
"strings"
"github.com/mitchellh/cli"
)
type OperatorRootCommand struct {
Meta
}
func (*OperatorRootCommand) Help() string {
helpText := `
Usage: nomad operator root <subcommand> [options] [args]
This command is accessed by using one of the subcommands below.
`
return strings.TrimSpace(helpText)
}
func (*OperatorRootCommand) Synopsis() string {
return "Provides access to root encryption keys"
}
func (f *OperatorRootCommand) Name() string { return "operator root" }
func (f *OperatorRootCommand) Run(_ []string) int {
return cli.RunResultHelp
}