package cmd import ( "github.com/spf13/cobra" hyprman "git.dayl.in/daylin/hyprman/internal" ) var makoCmd = &cobra.Command{ Use: "mako", Short: "mako integration", Run: func(cmd *cobra.Command, args []string) { hyprman.ListNotifications(number, json) }, } var ( number int json bool ) func init() { rootCmd.AddCommand(makoCmd) makoCmd.Flags().IntVarP(&number, "number", "n", 10, "number of notifications") makoCmd.Flags().BoolVar(&json, "json", false, "output data as json") }