mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 08:47:27 +00:00
20 lines
360 B
Go
20 lines
360 B
Go
package main
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var exportSourceCmd = &cobra.Command{
|
|
Use: "source",
|
|
Short: "Export source commands",
|
|
}
|
|
|
|
var (
|
|
exportSourceWithCred bool
|
|
)
|
|
|
|
func init() {
|
|
exportSourceCmd.PersistentFlags().BoolVar(&exportSourceWithCred, "with-credentials", false, "include credential secrets")
|
|
|
|
exportCmd.AddCommand(exportSourceCmd)
|
|
}
|