github.com/blixtra/nomad@v0.7.2-0.20171221000451-da9a1d7bb050/command/operator_raft.go (about)

     1  package command
     2  
     3  import (
     4  	"strings"
     5  
     6  	"github.com/mitchellh/cli"
     7  )
     8  
     9  type OperatorRaftCommand struct {
    10  	Meta
    11  }
    12  
    13  func (c *OperatorRaftCommand) Help() string {
    14  	helpText := `
    15  Usage: nomad operator raft <subcommand> [options]
    16  
    17    The Raft operator command is used to interact with Nomad's Raft subsystem. The
    18    command can be used to verify Raft peers or in rare cases to recover quorum by
    19    removing invalid peers.
    20  `
    21  	return strings.TrimSpace(helpText)
    22  }
    23  
    24  func (c *OperatorRaftCommand) Synopsis() string {
    25  	return "Provides access to the Raft subsystem"
    26  }
    27  
    28  func (c *OperatorRaftCommand) Run(args []string) int {
    29  	return cli.RunResultHelp
    30  }