INNER CODE UNIT · Go

main

operator-framework/operator-lifecycle-manager · util/cpb/main.go:14

func main() {
	if err := rootCmd.Execute(); err != nil {
		fmt.Println(err)
		os.Exit(1)
	}
}

var rootCmd = &cobra.Command{
	Use:   "cpb [output directory]",
	Short: "Copy bundle content",
	Long: `Copy bundle metadata and manifests into an output directory.
Copy traverses the filesystem from the current directory down
until it finds an annotations.yaml representing the bundle's metadata.
From there, it copies the annotations.yaml file and manifests into the
specified output directory`,
	Run: func(cmd *cobra.Command, args []string) {
		dest := "./bundle"
		if len(args) > 1 {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…