// Package flowmode is the entrypoint for Grafana Agent Flow.1package flowmode23import (4"fmt"5"os"67"github.com/grafana/agent/pkg/build"8"github.com/spf13/cobra"9)1011// Run is the entrypoint to Flow mode. It is expected to be called12// directly from the main function.13func Run() {14var cmd = &cobra.Command{15Use: fmt.Sprintf("%s [global options] <subcommand>", os.Args[0]),16Short: "Grafana Agent Flow",17Version: build.Print("agent"),1819RunE: func(cmd *cobra.Command, args []string) error {20return cmd.Usage()21},22}23cmd.SetVersionTemplate("{{ .Version }}\n")2425cmd.AddCommand(26fmtCommand(),27runCommand(),28)2930if err := cmd.Execute(); err != nil {31os.Exit(1)32}33}343536