Commit 4b7d0581 authored by jonas's avatar jonas

Add commands desc

parent 2515d46f
Pipeline #727 passed with stage
in 42 seconds
......@@ -5,7 +5,8 @@ import (
)
var rootCmd = &cobra.Command{
Use: "jetstats",
Use: "jetstats",
Short: "Listen for mailjet events and send them to influxdb",
}
var (
......
......@@ -9,7 +9,8 @@ import (
)
var sendCmd = &cobra.Command{
Use: "send",
Use: "send",
Short: "Flush influxdb bucket and send all saved points",
Run: func(cmd *cobra.Command, args []string) {
a := app.NewApp(app.NewConfig(configPath))
......
......@@ -7,7 +7,8 @@ import (
)
var serverCmd = &cobra.Command{
Use: "server",
Use: "server",
Short: "Listen for mailjet events using webhooks",
Run: func(cmd *cobra.Command, args []string) {
a := app.NewServer(app.NewConfig(configPath))
......
......@@ -10,7 +10,8 @@ import (
)
var webhooksCmd = &cobra.Command{
Use: "webhooks",
Use: "webhooks",
Short: "Manage mailjet webhooks",
}
func init() {
......@@ -20,7 +21,8 @@ func init() {
}
var webhooksStatusCmd = &cobra.Command{
Use: "status",
Use: "status",
Short: "Show mailjet webhooks status",
Run: func(cmd *cobra.Command, args []string) {
a := app.NewApp(app.NewConfig(configPath))
......@@ -37,7 +39,8 @@ var webhooksStatusCmd = &cobra.Command{
}
var webhooksSetupCmd = &cobra.Command{
Use: "setup",
Use: "setup",
Short: "Setup mailjet webhooks",
Run: func(cmd *cobra.Command, args []string) {
a := app.NewApp(app.NewConfig(configPath))
......@@ -50,7 +53,8 @@ var webhooksSetupCmd = &cobra.Command{
}
var webhooksDeleteCmd = &cobra.Command{
Use: "delete",
Use: "delete",
Short: "Delete mailjet webhooks",
Run: func(cmd *cobra.Command, args []string) {
a := app.NewApp(app.NewConfig(configPath))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment