campaigner/cmd/status.go
2020-04-29 20:40:05 +02:00

21 lines
430 B
Go

package cmd
import (
"github.com/spf13/cobra"
"git.ctrlz.es/mgdelacroix/campaigner/app"
)
func StatusCmd() *cobra.Command {
return &cobra.Command{
Use: "status",
Short: "Prints the campaign status",
Long: "Prints the current status of the campaign and its tickets",
Args: cobra.NoArgs,
Run: withApp(statusCmdF),
}
}
func statusCmdF(a *app.App, cmd *cobra.Command, _ []string) {
a.Campaign.PrintStatus()
}