mirror of
https://ghproxy.net/https://github.com/CaptainCore/captaincore.git
synced 2026-08-01 13:40:43 +08:00
26 lines
576 B
Go
26 lines
576 B
Go
package cmd
|
|
|
|
import (
|
|
"errors"
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var monitorNotifyCmd = &cobra.Command{
|
|
Use: "monitor-notify <account-portal-id>",
|
|
Short: "Monitor notify an account portal administrator",
|
|
Args: func(cmd *cobra.Command, args []string) error {
|
|
if len(args) < 1 {
|
|
return errors.New("requires an <account-portal-id> argument --log=<log-file> --monitor-file=<monitor-file> --urls=<urls>")
|
|
}
|
|
return nil
|
|
},
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
fmt.Println("Monitoring...")
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(monitorNotifyCmd)
|
|
}
|