Files
flux2/cmd/tk/create.go
stefanprodan 0f5204a8c1 Refactor create source
- use source API package instead of a text template
- use controller-runtime client instead of kubectl
2020-04-26 23:37:06 +03:00

22 lines
327 B
Go

package main
import (
"time"
"github.com/spf13/cobra"
)
var createCmd = &cobra.Command{
Use: "create",
Short: "Create commands",
}
var (
interval time.Duration
)
func init() {
createCmd.PersistentFlags().DurationVarP(&interval, "interval", "", time.Minute, "source sync interval")
rootCmd.AddCommand(createCmd)
}