mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
35 lines
806 B
Go
35 lines
806 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package command
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/hashicorp/cli"
|
|
)
|
|
|
|
type NodeIntroCommand struct {
|
|
Meta
|
|
}
|
|
|
|
func (n *NodeIntroCommand) Name() string { return "node intro" }
|
|
|
|
func (n *NodeIntroCommand) Run(_ []string) int { return cli.RunResultHelp }
|
|
|
|
func (n *NodeIntroCommand) Synopsis() string {
|
|
return "Tooling for managing node introduction tokens"
|
|
}
|
|
|
|
func (n *NodeIntroCommand) Help() string {
|
|
helpText := `
|
|
Usage: nomad node intro <subcommand> [options]
|
|
|
|
This command groups subcommands for managing node introduction tokens. These
|
|
tokens are used to authenticate new Nomad client nodes to the cluster.
|
|
|
|
Please see the individual subcommand help for detailed usage information.
|
|
`
|
|
return strings.TrimSpace(helpText)
|
|
}
|