hyprman/cmd/mako.go

25 lines
404 B
Go
Raw Normal View History

2024-05-21 15:41:20 -05:00
package cmd
import (
"git.dayl.in/daylin/hyprman/internal"
2024-05-21 15:41:20 -05:00
"github.com/spf13/cobra"
)
var makoCmd = &cobra.Command{
2024-05-31 14:59:23 -05:00
Use: "mako",
Short: "mako integration",
Run: func(cmd *cobra.Command, args []string) {
hyprman.ListNotifications(number)
2024-05-31 14:59:23 -05:00
},
2024-05-21 15:41:20 -05:00
}
2024-06-06 13:11:21 -05:00
var (
number int
)
2024-05-21 15:41:20 -05:00
func init() {
2024-05-31 14:59:23 -05:00
rootCmd.AddCommand(makoCmd)
makoCmd.Flags().IntVarP(&number, "number", "n", 10, "number of notifications")
2024-05-21 15:41:20 -05:00
}