hyprman/cmd/mako.go

23 lines
403 B
Go

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