mirror of https://github.com/fluxcd/flux2.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
327 B
Go
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)
|
|
}
|