Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "checkup", Short: "Perform checks on your services and sites", Long: `Checkup is distributed, lock-free, self-hosted health checks and status pages. Checkup will always look for a checkup.json file in the current working directory by default and use it. You can specify a different file location using the --config/-c flag. Running checkup without any arguments will invoke a single checkup and print results to stdout. To store the results of the check, use --store.`, Run: func(cmd *cobra.Command, args []string) { c := loadCheckup() if storeResults { if c.Storage == nil { log.Fatal("no storage configured") } } results, err := c.Check() if err != nil { log.Fatal(err) } if storeResults { err := c.Storage.Store(results) if err != nil { log.Fatal(err) } return } for _, result := range results { fmt.Println(result) } }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.