github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/command/system_reconcile.go (about) 1 package command 2 3 import ( 4 "strings" 5 6 "github.com/mitchellh/cli" 7 ) 8 9 type SystemReconcileCommand struct { 10 Meta 11 } 12 13 func (s *SystemReconcileCommand) Help() string { 14 helpText := ` 15 Usage: nomad system reconcile <subcommand> [options] 16 17 This command groups subcommands for interacting with the system reconcile API. 18 19 Reconcile the summaries of all registered jobs: 20 21 $ nomad system reconcile summaries 22 23 Please see the individual subcommand help for detailed usage information. 24 ` 25 26 return strings.TrimSpace(helpText) 27 } 28 29 func (s *SystemReconcileCommand) Synopsis() string { 30 return "Perform system reconciliation tasks" 31 } 32 33 func (s *SystemReconcileCommand) Name() string { return "system reconcile" } 34 35 func (s *SystemReconcileCommand) Run(args []string) int { 36 return cli.RunResultHelp 37 }