task

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "task",
	Short: "Work with TickTick tasks",
	Long: `Create, view, update, and manage tasks in your TickTick projects.
    
All task commands operate on the current active project by default.
You can change the current project with 'tickli project use' or
specify a different project with the --project-id flag.`,
	Example: `  # List all tasks in current project
  tickli task list
  
  # Create a new task
  tickli task create -t "Submit quarterly report"
  
  # Complete a task
  tickli task complete abc123def456`,
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		loadClient()
		if projectID == "" {
			cfg, err := config.Load()
			if err != nil {
				return errors.Wrap(err, "failed to load config")
			}
			projectID = cfg.DefaultProjectID
		}
		return nil
	},
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Println("task called")
	},
}
View Source
var TickliClient *api.Client

Functions

func Filter

func Filter(tasks []types.Task, predicate func(task types.Task) bool) []types.Task

func RegisterProjectOverride added in v0.0.3

func RegisterProjectOverride(cmd *cobra.Command)

Types

This section is empty.

Jump to

Keyboard shortcuts

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