2024-05-21 15:41:20 -05:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
2024-06-01 01:25:29 -05:00
|
|
|
"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) {
|
2024-06-01 01:25:29 -05:00
|
|
|
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
|
|
|
|
2024-06-01 01:25:29 -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)
|
2024-06-01 01:25:29 -05:00
|
|
|
makoCmd.Flags().IntVarP(&number, "number", "n", 10, "number of notifications")
|
2024-05-21 15:41:20 -05:00
|
|
|
}
|