cmd

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "pomodoro",
	Short: "Pomodoro CLI",
	Long:  "A simple Pomodoro command-line client for the Open Pomodoro format",
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type PomodoroJSON

type PomodoroJSON struct {
	StartTime   string   `json:"start_time"`
	Description string   `json:"description"`
	Duration    int      `json:"duration"`
	Tags        []string `json:"tags"`
	Completed   bool     `json:"completed"`
	IsCurrent   bool     `json:"is_current"`
}

type SettingsJSON

type SettingsJSON struct {
	DataDirectory           string   `json:"data_directory"`
	DailyGoal               int      `json:"daily_goal"`
	DefaultPomodoroDuration int      `json:"default_pomodoro_duration"` // in minutes
	DefaultBreakDuration    int      `json:"default_break_duration"`    // in minutes
	DefaultTags             []string `json:"default_tags"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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