github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/command/system.go (about)

     1  package command
     2  
     3  import (
     4  	"strings"
     5  
     6  	"github.com/mitchellh/cli"
     7  )
     8  
     9  type SystemCommand struct {
    10  	Meta
    11  }
    12  
    13  func (sc *SystemCommand) Help() string {
    14  	helpText := `
    15  Usage: nomad system <subcommand> [options]
    16  
    17    This command groups subcommands for interacting with the system API. Users
    18    can perform system maintenance tasks such as trigger the garbage collector or
    19    perform job summary reconciliation.
    20  
    21    Please see the individual subcommand help for detailed usage information.
    22  `
    23  
    24  	return strings.TrimSpace(helpText)
    25  }
    26  
    27  func (sc *SystemCommand) Synopsis() string {
    28  	return "Interact with the system API"
    29  }
    30  
    31  func (sc *SystemCommand) Name() string { return "system" }
    32  
    33  func (sc *SystemCommand) Run(args []string) int {
    34  	return cli.RunResultHelp
    35  }