cmd

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package cmd contains the cobra commands

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyDefaultPagination added in v0.3.0

func ApplyDefaultPagination(limit, offset *int) (*int, *int)

ApplyDefaultPagination applies default pagination values if not set

func Execute

func Execute()

func GetDefaultPageSize added in v0.3.0

func GetDefaultPageSize() int

GetDefaultPageSize returns the configured default page size

func GetMaxLimit added in v0.3.0

func GetMaxLimit() int

GetMaxLimit returns the configured maximum limit for pagination

func Root

func Root() *cobra.Command

Types

type TaskStore

type TaskStore interface {
	Get(id string) (core.Task, error)
	Create(params core.CreateTaskParams) (core.Task, error)
	Update(task *core.Task, params core.EditTaskParams) error
	List(params core.ListTasksParams) ([]core.Task, error)
	Search(query string, listParams core.ListTasksParams) ([]core.Task, error)
	Path(t core.Task) string
	Archive(id core.TaskID) (string, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL