Documentation ¶
Index ¶
- func NewTable() *tablewriter.Table
- type CreateTaskDto
- type Task
- type TaskContainer
- func (t *TaskContainer) Add(task Task)
- func (t *TaskContainer) Clean()
- func (t *TaskContainer) Complete(idx int) error
- func (t *TaskContainer) Edit(idx int, description string) error
- func (t *TaskContainer) Init()
- func (t *TaskContainer) Load() error
- func (t *TaskContainer) Purge()
- func (t *TaskContainer) Remove(idx int) error
- func (t *TaskContainer) RenderAll()
- func (t *TaskContainer) RenderByScope(scope string)
- func (t *TaskContainer) Save()
- func (t *TaskContainer) Sort()
- func (t *TaskContainer) Uncomplete(idx int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTable ¶
func NewTable() *tablewriter.Table
Types ¶
type CreateTaskDto ¶
type Task ¶
type Task struct { UUID uuid.UUID Description string Scope string IsDone bool CreatedAt time.Time CompletedAt time.Time }
func NewTask ¶
func NewTask(data CreateTaskDto) Task
func (*Task) GetDesriptionWithStatus ¶ added in v0.2.0
func (*Task) GetStatusMark ¶
func (*Task) Uncomplete ¶
func (t *Task) Uncomplete()
type TaskContainer ¶
type TaskContainer struct {
Data []Task
}
var (
Tasks TaskContainer
)
func (*TaskContainer) Add ¶
func (t *TaskContainer) Add(task Task)
func (*TaskContainer) Clean ¶
func (t *TaskContainer) Clean()
func (*TaskContainer) Complete ¶
func (t *TaskContainer) Complete(idx int) error
func (*TaskContainer) Init ¶
func (t *TaskContainer) Init()
func (*TaskContainer) Load ¶
func (t *TaskContainer) Load() error
func (*TaskContainer) Purge ¶
func (t *TaskContainer) Purge()
func (*TaskContainer) Remove ¶
func (t *TaskContainer) Remove(idx int) error
func (*TaskContainer) RenderAll ¶
func (t *TaskContainer) RenderAll()
func (*TaskContainer) RenderByScope ¶
func (t *TaskContainer) RenderByScope(scope string)
func (*TaskContainer) Save ¶
func (t *TaskContainer) Save()
func (*TaskContainer) Sort ¶
func (t *TaskContainer) Sort()
func (*TaskContainer) Uncomplete ¶
func (t *TaskContainer) Uncomplete(idx int) error
Click to show internal directories.
Click to hide internal directories.