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