INNER CODE UNIT · Go

main

liqotech/liqo · cmd/fabric/main.go:69

func main() {
	var cmd = cobra.Command{
		Use:  "liqo-fabric",
		RunE: run,
	}

	flagsutils.InitKlogFlags(cmd.Flags())
	restcfg.InitFlags(cmd.Flags())
	fabric.InitFlags(cmd.Flags(), options)
	conncheck.InitFlags(cmd.Flags(), options.ConnCheckOptions)

	// Register the flags for setting global labels and annotations
	cmd.Flags().Var(&globalLabels, "global-labels", "Global labels to be added to all created resources (key=value)")
	cmd.Flags().Var(&globalAnnotations, "global-annotations", "Global annotations to be added to all created resources (key=value)")

	if err := fabric.MarkFlagsRequired(&cmd); err != nil {
		klog.Error(err)
		os.Exit(1)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…