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.
21 lines
292 B
Go
21 lines
292 B
Go
5 years ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
var exportCmd = &cobra.Command{
|
||
|
Use: "export",
|
||
|
Short: "Export commands",
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
exportAll bool
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
exportCmd.PersistentFlags().BoolVar(&exportAll, "all", false, "select all resources")
|
||
|
|
||
|
rootCmd.AddCommand(exportCmd)
|
||
|
}
|