mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 00:37:27 +00:00
23 lines
440 B
Go
23 lines
440 B
Go
package main
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var createCmd = &cobra.Command{
|
|
Use: "create",
|
|
Short: "Create commands",
|
|
}
|
|
|
|
var (
|
|
interval time.Duration
|
|
export bool
|
|
)
|
|
|
|
func init() {
|
|
createCmd.PersistentFlags().DurationVarP(&interval, "interval", "", time.Minute, "source sync interval")
|
|
createCmd.PersistentFlags().BoolVar(&export, "export", false, "export in yaml format to stdout")
|
|
rootCmd.AddCommand(createCmd)
|
|
}
|