-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:improvement | ||
cli: Added synopsis for `operator root` and `operator gossip` command | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright (c) HashiCorp, Inc. | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
|
||
package command | ||
|
||
import ( | ||
"strings" | ||
|
||
"github.com/mitchellh/cli" | ||
) | ||
|
||
type OperatorGossipCommand struct { | ||
Meta | ||
} | ||
|
||
func (*OperatorGossipCommand) Help() string { | ||
helpText := ` | ||
Usage: nomad operator gossip <subcommand> [options] [args] | ||
This command is accessed by using one of the subcommands below. | ||
` | ||
return strings.TrimSpace(helpText) | ||
} | ||
|
||
func (*OperatorGossipCommand) Synopsis() string { | ||
return "Provides access to the Gossip protocol" | ||
} | ||
|
||
func (f *OperatorGossipCommand) Name() string { return "operator gossip" } | ||
|
||
func (f *OperatorGossipCommand) Run(_ []string) int { | ||
return cli.RunResultHelp | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// 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 | ||
} |