campaigner/cmd/sync.go

24 lines
589 B
Go
Raw Normal View History

2020-03-04 22:26:04 +01:00
package cmd
import (
"github.com/spf13/cobra"
)
func SyncCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "sync",
2020-04-27 12:22:15 +02:00
Short: "Syncs the tickets",
Long: "Synchronizes the status of the published tickets with remote providers",
2020-03-04 22:26:04 +01:00
Args: cobra.NoArgs,
Run: syncCmdF,
}
2020-04-27 12:22:15 +02:00
cmd.Flags().BoolP("all", "a", false, "syncs all the published tickets")
cmd.Flags().StringP("jira-issue", "j", "", "syncs a ticket by Jira issue number")
cmd.Flags().StringP("github-issue", "g", "", "syncs a ticket by GitHub issue number")
2020-03-04 22:26:04 +01:00
return cmd
}
func syncCmdF(_ *cobra.Command, _ []string) {}