Documentation
¶
Index ¶
- func ListBooks(ctx context.Context, args []string) error
- func Reset(ctx context.Context, args []string) error
- func SearchAndAdd(ctx context.Context, args []string) error
- func SearchAndAddWithOptions(ctx context.Context, args []string, interactive bool) error
- func Setup(ctx context.Context, args []string) error
- func Status(ctx context.Context, args []string) error
- func UpdateBookProgress(ctx context.Context, args []string) error
- func UpdateBookStatus(ctx context.Context, args []string) error
- type BookHandler
- type NoteHandler
- func (h *NoteHandler) Close() error
- func (h *NoteHandler) Create(ctx context.Context, title string, content string, filePath string, ...) error
- func (h *NoteHandler) Delete(ctx context.Context, id int64) error
- func (h *NoteHandler) Edit(ctx context.Context, id int64) error
- func (h *NoteHandler) List(ctx context.Context, static, showArchived bool, tags []string) error
- func (h *NoteHandler) View(ctx context.Context, id int64) error
- type SeedHandler
- type TaskHandler
- func (h *TaskHandler) Close() error
- func (h *TaskHandler) Create(ctx context.Context, desc []string, priority, project, due string, ...) error
- func (h *TaskHandler) Delete(ctx context.Context, args []string) error
- func (h *TaskHandler) Done(ctx context.Context, args []string) error
- func (h *TaskHandler) EditInteractive(ctx context.Context, taskID string) error
- func (h *TaskHandler) List(ctx context.Context, static, showAll bool, status, priority, project string) error
- func (h *TaskHandler) ListProjects(ctx context.Context, static bool) error
- func (h *TaskHandler) ListTags(ctx context.Context, static bool) error
- func (h *TaskHandler) Start(ctx context.Context, taskID string, description string) error
- func (h *TaskHandler) Stop(ctx context.Context, taskID string) error
- func (h *TaskHandler) Timesheet(ctx context.Context, days int, taskID string) error
- func (h *TaskHandler) Update(ctx context.Context, ...) error
- func (h *TaskHandler) View(ctx context.Context, args []string, format string, jsonOutput, noMetadata bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SearchAndAdd ¶
SearchAndAdd searches for books and allows user to select and add to queue
func SearchAndAddWithOptions ¶
SearchAndAddWithOptions searches for books with interactive option
func UpdateBookProgress ¶
UpdateBookProgress updates a book's reading progress percentage
Types ¶
type BookHandler ¶
type BookHandler struct {
// contains filtered or unexported fields
}
BookHandler handles all book-related commands
func NewBookHandler ¶
func NewBookHandler() (*BookHandler, error)
NewBookHandler creates a new book handler
type NoteHandler ¶
type NoteHandler struct {
// contains filtered or unexported fields
}
NoteHandler handles all note-related commands
func NewNoteHandler ¶
func NewNoteHandler() (*NoteHandler, error)
NewNoteHandler creates a new note handler
func (*NoteHandler) Create ¶
func (h *NoteHandler) Create(ctx context.Context, title string, content string, filePath string, interactive bool) error
Create handles note creation with optional title, content, and file path
func (*NoteHandler) Delete ¶
func (h *NoteHandler) Delete(ctx context.Context, id int64) error
Delete permanently removes a note and its metadata
func (*NoteHandler) Edit ¶
func (h *NoteHandler) Edit(ctx context.Context, id int64) error
Edit handles note editing by ID
type SeedHandler ¶
type SeedHandler struct {
// contains filtered or unexported fields
}
SeedHandler handles database seeding operations
func NewSeedHandler ¶
func NewSeedHandler() (*SeedHandler, error)
NewSeedHandler creates a new seed handler
type TaskHandler ¶
type TaskHandler struct {
// contains filtered or unexported fields
}
TaskHandler handles all task-related commands
func NewTaskHandler ¶
func NewTaskHandler() (*TaskHandler, error)
NewTaskHandler creates a new task handler
func (*TaskHandler) Create ¶
func (h *TaskHandler) Create(ctx context.Context, desc []string, priority, project, due string, tags []string) error
Create creates a new task
func (*TaskHandler) Delete ¶
func (h *TaskHandler) Delete(ctx context.Context, args []string) error
Delete deletes a task
func (*TaskHandler) Done ¶
func (h *TaskHandler) Done(ctx context.Context, args []string) error
Done marks a task as completed
func (*TaskHandler) EditInteractive ¶
func (h *TaskHandler) EditInteractive(ctx context.Context, taskID string) error
EditInteractive opens an interactive task editor with status picker and priority toggle
func (*TaskHandler) List ¶
func (h *TaskHandler) List(ctx context.Context, static, showAll bool, status, priority, project string) error
List lists all tasks with optional filtering
func (*TaskHandler) ListProjects ¶
func (h *TaskHandler) ListProjects(ctx context.Context, static bool) error
ListProjects lists all projects with their task counts
func (*TaskHandler) ListTags ¶
func (h *TaskHandler) ListTags(ctx context.Context, static bool) error
ListTags lists all tags with their task counts
func (*TaskHandler) Stop ¶
func (h *TaskHandler) Stop(ctx context.Context, taskID string) error
Stop stops time tracking for a task