Documentation ¶
Index ¶
- Constants
- Variables
- func Bold(str string) string
- func GenerateGanttChart(records TaskRecords) (chart string)
- func GenerateLogo() (logo string)
- func ListTasks(taskRecords TaskRecords, allOrActive bool, verboseOrNot bool, tags []string) (taskString string)
- func TakeNote(note string, tasks []Task)
- func TerminalWidth() int
- func WriteNotesToNotesFile(notesRecord NotesRecord) error
- func WriteTasksToTaskFile(taskRecords TaskRecords)
- type Note
- type NotesRecord
- type Task
- type TaskInterval
- type TaskRecords
- func ClockIn(taskRecords TaskRecords, taskName string, timeStampValue time.Time) (newTaskRecords TaskRecords, startError error)
- func ClockOut(taskRecords TaskRecords, taskName string, timeStampValue time.Time) (records TaskRecords, endError error)
- func ReadTasksFromTasksFile() (taskRecords TaskRecords)
- func UpdateTask(taskRecords TaskRecords, name string, priority int, tags []string) TaskRecords
Constants ¶
View Source
const ( START = 1 END = 0 )
Variables ¶
View Source
var NIL_TIME time.Time = time.Time{}
Functions ¶
func GenerateGanttChart ¶
func GenerateGanttChart(records TaskRecords) (chart string)
func GenerateLogo ¶
func GenerateLogo() (logo string)
func ListTasks ¶
func ListTasks(taskRecords TaskRecords, allOrActive bool, verboseOrNot bool, tags []string) (taskString string)
func TerminalWidth ¶
func TerminalWidth() int
func WriteNotesToNotesFile ¶
func WriteNotesToNotesFile(notesRecord NotesRecord) error
func WriteTasksToTaskFile ¶
func WriteTasksToTaskFile(taskRecords TaskRecords)
Types ¶
type NotesRecord ¶
type NotesRecord struct {
Notes []Note
}
func ReadNotesFromNotesFile ¶
func ReadNotesFromNotesFile() (notesRecord NotesRecord)
Read tasks edn from file and return them
type Task ¶
type Task struct { Name string Priority int Tags []string TaskIntervals []TaskInterval }
func GetActiveTasks ¶
func GetActiveTasks(taskRecords TaskRecords) (activeTasks []Task)
Gets all tasks that are most recent and have tag START
type TaskRecords ¶
var NIL_RECORDS TaskRecords
func ClockIn ¶
func ClockIn(taskRecords TaskRecords, taskName string, timeStampValue time.Time) (newTaskRecords TaskRecords, startError error)
Function to start a task and write it to file
func ClockOut ¶
func ClockOut(taskRecords TaskRecords, taskName string, timeStampValue time.Time) (records TaskRecords, endError error)
Function to end a task that has already been started
func ReadTasksFromTasksFile ¶
func ReadTasksFromTasksFile() (taskRecords TaskRecords)
Read tasks edn from file and return them
func UpdateTask ¶
func UpdateTask(taskRecords TaskRecords, name string, priority int, tags []string) TaskRecords
Click to show internal directories.
Click to hide internal directories.