mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 08:47:27 +00:00
- use source API package instead of a text template - use controller-runtime client instead of kubectl
21 lines
327 B
Go
21 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)
|
|
}
|