Documentation ¶
Index ¶
- Constants
- Variables
- func Execute()
- func GetConfig() config.JournalConfig
- func GetDateRange(genType int, isLast bool) (time.Time, time.Time)
- func ReceivedMsg(msg string)
- func ReportFromGit(git config.Git, start int64, end int64) []support.GitLog
- func ResolveType(cmd *cobra.Command) int
- func SysMsg(msg string)
- func UserMsg(msg string)
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 ReceivedMsg ¶
func ReceivedMsg(msg string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.