github.com/verrazzano/verrazzano@v1.7.0/tools/charts-manager/vcm/main.go (about)

     1  // Copyright (c) 2023, Oracle and/or its affiliates.
     2  // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  
     4  package main
     5  
     6  // Copyright (c) 2023, Oracle and/or its affiliates.
     7  // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     8  
     9  import (
    10  	"os"
    11  
    12  	"github.com/spf13/pflag"
    13  	"github.com/verrazzano/verrazzano/tools/charts-manager/vcm/cmd/root"
    14  	"github.com/verrazzano/verrazzano/tools/vz/cmd/helpers"
    15  	"k8s.io/cli-runtime/pkg/genericclioptions"
    16  )
    17  
    18  func main() {
    19  	flags := pflag.NewFlagSet("vcm", pflag.ExitOnError)
    20  	pflag.CommandLine = flags
    21  
    22  	rc := helpers.NewRootCmdContext(genericclioptions.IOStreams{In: os.Stdin, Out: os.Stdout, ErrOut: os.Stderr})
    23  	rootCmd := root.NewRootCmd(rc, nil, nil)
    24  	if err := rootCmd.Execute(); err != nil {
    25  		os.Exit(1)
    26  	}
    27  }