Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Promu = &cobra.Command{ Use: "promu", Short: "promu is the utility tool for Prometheus projects", Long: `promu is the utility tool for Prometheus projects`, SilenceErrors: true, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { var err error info, err = NewProjectInfo() if err != nil { return err } return initConfig() }, Run: func(cmd *cobra.Command, args []string) { cmd.Help() }, }
Promu represents the base command when called without any subcommands
Functions ¶
Types ¶
type ProjectInfo ¶
type ProjectInfo struct { Branch string Name string Owner string Repo string Revision string Version string }
ProjectInfo represents current project useful informations.
func NewProjectInfo ¶
func NewProjectInfo() (ProjectInfo, error)
NewProjectInfo returns a new ProjectInfo.
Click to show internal directories.
Click to hide internal directories.