Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HelmReleaseName string
View Source
var Namespace string
View Source
var RootCmd = &cobra.Command{ Use: "tobs", Short: "A CLI tool for The Observablity Stack", Long: `The Observability Stack is a tool that uses TimescaleDB as a compressed long-term store for time series metrics from Prometheus. This application is a CLI tool that allows users to quickly access the different components of Observability.`, SilenceUsage: true, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { var err error HelmReleaseName, err = cmd.Flags().GetString("name") if err != nil { return fmt.Errorf("could not read global flag: %w", err) } Namespace, err = cmd.Flags().GetString("namespace") if err != nil { return fmt.Errorf("could not read global flag: %w", err) } return nil }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
func AddRootFlags ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.