Skip to content
Snippets Groups Projects
root.go 595 B
Newer Older
jrabbit's avatar
jrabbit committed
package cmd

import (
jrabbit's avatar
jrabbit committed
	"0xacab.org/jrabbit/adormit/adormit"
jrabbit's avatar
jrabbit committed
	"github.com/spf13/cobra"
	"runtime"
jrabbit's avatar
jrabbit committed
)

var RootCmd = &cobra.Command{
	Use:   "adormit-cli",
	Short: "Your personal time agent",
	Run: func(cmd *cobra.Command, args []string) {
		// cmd.Help()
		os := runtime.GOOS
    	switch os {
    	case "windows":
        	adormit.GetWindowsAlarms()
   //      case "linux":
			// adormit.GetGnomeAlarms()
		// adormit.MakeAlarm()
jrabbit's avatar
jrabbit committed
		// adormit.DemoTimer()
jrabbit's avatar
jrabbit committed

func init() {
	cobra.OnInitialize(initConfig)
jrabbit's avatar
jrabbit committed
}

func Execute() {
	RootCmd.Execute()
}

func initConfig() {
	return
}