github.com/manicqin/nomad@v0.9.5/command/job_periodic.go (about)

     1  package command
     2  
     3  import (
     4  	"strings"
     5  
     6  	"github.com/mitchellh/cli"
     7  )
     8  
     9  type JobPeriodicCommand struct {
    10  	Meta
    11  }
    12  
    13  func (f *JobPeriodicCommand) Name() string { return "periodic" }
    14  
    15  func (f *JobPeriodicCommand) Run(args []string) int {
    16  	return cli.RunResultHelp
    17  }
    18  
    19  func (f *JobPeriodicCommand) Synopsis() string {
    20  	return "Interact with periodic jobs"
    21  }
    22  
    23  func (f *JobPeriodicCommand) Help() string {
    24  	helpText := `
    25  Usage: nomad job periodic <subcommand> [options] [args]
    26  
    27    This command groups subcommands for interacting with periodic jobs.
    28  
    29    Force a periodic job:
    30  
    31        $ nomad job periodic force <job_id>
    32  
    33    Please see the individual subcommand help for detailed usage information.
    34  `
    35  	return strings.TrimSpace(helpText)
    36  }