cmd

package
v0.0.0-...-0ae16d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Day     = 0
	Week    = 1
	Month   = 2
	Quarter = 3
)
View Source
const GithubApi = "https://api.github.com/repos/4everlynn/journal/releases/latest"

Variables

View Source
var JournalVersion = config.Version{
	Master: 1,
	Mirror: 0,
	Patch:  5,
}

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 GetConfig

func GetConfig() config.JournalConfig

func GetDateRange

func GetDateRange(genType int, isLast bool) (time.Time, time.Time)

func ReceivedMsg

func ReceivedMsg(msg string)

func ReportFromGit

func ReportFromGit(git config.Git, start int64, end int64) []support.GitLog

func ResolveType

func ResolveType(cmd *cobra.Command) int

ResolveType determine the build type

func SysMsg

func SysMsg(msg string)

func UserMsg

func UserMsg(msg string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL