Documentation
¶
Index ¶
- Constants
- Variables
- func GenerateData(db *sql.DB, numDays, numTasks uint8) error
- func RenderReport(db *sql.DB, style Style, writer io.Writer, plain bool, ...) error
- func RenderStats(db *sql.DB, style Style, writer io.Writer, plain bool, ...) error
- func RenderTaskLog(db *sql.DB, style Style, writer io.Writer, plain bool, ...) error
- func RenderUI(db *sql.DB, style Style, timeProvider types.TimeProvider) error
- func ShowActiveTask(db *sql.DB, writer io.Writer, template string) error
- type Model
- type Style
- type Theme
Constants ¶
View Source
const ( ActiveTaskPlaceholder = "{{task}}" ActiveTaskTimePlaceholder = "{{time}}" )
Variables ¶
View Source
var ( ErrThemeFileHasInvalidSchema = errors.New("theme file's schema is incorrect") ErrThemeColorsAreInvalid = errors.New("invalid colors provided") )
Functions ¶
func RenderReport ¶
func RenderStats ¶
func RenderTaskLog ¶
Types ¶
type Model ¶ added in v0.4.0
type Model struct {
// contains filtered or unexported fields
}
func InitialModel ¶
type Theme ¶ added in v0.5.0
type Theme struct {
ActiveTask string `json:"activeTask,omitempty"`
ActiveTaskBeginTime string `json:"activeTaskBeginTime,omitempty"`
ActiveTasks string `json:"activeTasks,omitempty"`
FormContext string `json:"formContext,omitempty"`
FormFieldName string `json:"formFieldName,omitempty"`
FormHelp string `json:"formHelp,omitempty"`
HelpMsg string `json:"helpMsg,omitempty"`
HelpPrimary string `json:"helpPrimary,omitempty"`
HelpSecondary string `json:"helpSecondary,omitempty"`
InactiveTasks string `json:"inactiveTasks,omitempty"`
InitialHelpMsg string `json:"initialHelpMsg,omitempty"`
ListItemDesc string `json:"listItemDesc,omitempty"`
ListItemTitle string `json:"listItemTitle,omitempty"`
RecordsBorder string `json:"recordsBorder,omitempty"`
RecordsDateRange string `json:"recordsDateRange,omitempty"`
RecordsHeader string `json:"recordsHeader,omitempty"`
RecordsHelp string `json:"recordsHelp,omitempty"`
TaskLogDetailsViewTitle string `json:"taskLogDetails,omitempty"`
TaskEntry string `json:"taskEntry,omitempty"`
TaskLogEntry string `json:"taskLogEntry,omitempty"`
TaskLogList string `json:"taskLogList,omitempty"`
TaskLogFormInfo string `json:"taskLogFormInfo,omitempty"`
TaskLogFormWarn string `json:"taskLogFormWarn,omitempty"`
TaskLogFormError string `json:"taskLogFormError,omitempty"`
Tasks []string `json:"tasks,omitempty"`
TitleForeground string `json:"titleForeground,omitempty"`
ToolName string `json:"toolName,omitempty"`
Tracking string `json:"tracking,omitempty"`
}
func DefaultTheme ¶ added in v0.5.0
func DefaultTheme() Theme
Click to show internal directories.
Click to hide internal directories.