Skip to content
dwburkePublic

About

embed "github.com/robfig/cron" into your app

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

golang "github.com/robfig/cron" embedded

main.go

package main

import (
	"github.com/dwburke/atexit"

	"github.com/dwburke/monner/cmd"
)

func main() {
	defer atexit.AtExit()
	cmd.Execute()
}

cmd/root.go

package cmd

import (
   ...
	"github.com/dwburke/cron"
   ...
)

func init() {
	cobra.OnInitialize(initConfig)
	cobra.OnInitialize(cron.Run)
}

var rootCmd = &cobra.Command{
	...
}

About

embed "github.com/robfig/cron" into your app

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

⌂ 换网址