Documentation ¶
Index ¶
- Constants
- Variables
- func Add(files []string) int
- func Commit(message string) int
- func Create(name string, description string) int
- func Init() int
- func List(status string) int
- func NewTaskID(taskList *TaskList) int
- func Pull() int
- func Push() int
- func SaveTaskList(tasks *TaskList) error
- func Update(id int, key string, value string, status string) int
- type Task
- type TaskList
Constants ¶
Variables ¶
View Source
var ( OutputBaseDirectory = getUserHome() OutputDirectory = path.Join(OutputBaseDirectory, InstallBaseDirectory) OutputPath = path.Join(OutputDirectory, TasksPath) )
Functions ¶
Types ¶
type Task ¶
type Task struct { Name string `json:"name"` Description string `json:"description"` Created string `json:"created"` Updated string `json:"updated"` ID int `json:"id"` }
Nullable values should be pointers
type TaskList ¶
func NewTaskList ¶
func NewTaskList() *TaskList
Read tasks.json file and return representation of data in sorted form. Each "O" and "C" slice is sorted in descending order.
func (*TaskList) UpdateTaskDescription ¶
Click to show internal directories.
Click to hide internal directories.