github.com/hernad/nomad@v1.6.112/command/system_reconcile.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 SystemReconcileCommand struct { 13 Meta 14 } 15 16 func (s *SystemReconcileCommand) Help() string { 17 helpText := ` 18 Usage: nomad system reconcile <subcommand> [options] 19 20 This command groups subcommands for interacting with the system reconcile API. 21 22 Reconcile the summaries of all registered jobs: 23 24 $ nomad system reconcile summaries 25 26 Please see the individual subcommand help for detailed usage information. 27 ` 28 29 return strings.TrimSpace(helpText) 30 } 31 32 func (s *SystemReconcileCommand) Synopsis() string { 33 return "Perform system reconciliation tasks" 34 } 35 36 func (s *SystemReconcileCommand) Name() string { return "system reconcile" } 37 38 func (s *SystemReconcileCommand) Run(args []string) int { 39 return cli.RunResultHelp 40 }