Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is version Version string // Revision is abbreviated revision Revision string )
View Source
var RootCmd = &cobra.Command{
Use: "glstats",
Short: "Show git log stats data",
Long: `Show git log stats data`,
}
RootCmd represents the base command when called without any subcommands
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetTimesUntil ¶
GetTimesUntil returns slice of time.Time. The slice of time.Time includes num time.Time and its duration is specified by durationType parameter.
Types ¶
type DurationType ¶
type DurationType int
DurationType is duration type used by summarying the git log data
const ( // DAY is enum representing duration is day DAY DurationType = iota // MONTH is enum representing duration is month MONTH // YEAR is enum representing duration is year YEAR )
Click to show internal directories.
Click to hide internal directories.