project

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ColorCompletion = []cobra.Completion{
	cobra.CompletionWithDesc(DefaultColor.String(), "🎨Default color"),
	cobra.CompletionWithDesc("#EC6665", "❤️Red"),
	cobra.CompletionWithDesc("#F2B04A", "🧡Orange"),
	cobra.CompletionWithDesc("#FFD866", "💛Yellow"),
	cobra.CompletionWithDesc("#5CD0A7", "💚Green"),
	cobra.CompletionWithDesc("#9BECEC", "🩵Cyan"),
	cobra.CompletionWithDesc("#4AA6EF", "💙Blue"),
	cobra.CompletionWithDesc("#CF66F6", "💜Purple"),
	cobra.CompletionWithDesc("#EC70A5", "💖Pink"),
	cobra.CompletionWithDesc("#FDF8DC", "🤍White"),
}
View Source
var DefaultColor = Color(color.HEX("#3694FE"))
View Source
var KindCompletion = []cobra.Completion{
	cobra.CompletionWithDesc(string(KindTask), "Task project"),
	cobra.CompletionWithDesc(string(KindNote), "Note project"),
}
View Source
var ViewModeCompletion = []cobra.Completion{
	cobra.CompletionWithDesc(ViewModeList.String(), "List view mode"),
	cobra.CompletionWithDesc(ViewModeKanban.String(), "Kanban view mode"),
	cobra.CompletionWithDesc(ViewModeTimeline.String(), "Timeline view mode"),
}

Functions

This section is empty.

Types

type Color

type Color color.RGBColor

func (Color) MarshalJSON

func (c Color) MarshalJSON() ([]byte, error)

func (*Color) Set

func (c *Color) Set(s string) error

func (Color) Sprint

func (c Color) Sprint(a ...any) string

func (Color) String

func (c Color) String() string

func (*Color) Type

func (c *Color) Type() string

func (*Color) UnmarshalJSON

func (c *Color) UnmarshalJSON(data []byte) error

type Kind

type Kind string
const (
	KindTask    Kind = "TASK"
	KindNote    Kind = "NOTE"
	KindUnknown Kind = "UNKNOWN"
)

func (Kind) MarshalJSON

func (k Kind) MarshalJSON() ([]byte, error)

func (*Kind) Set

func (k *Kind) Set(s string) error

func (Kind) String

func (k Kind) String() string

func (*Kind) Type

func (k *Kind) Type() string

func (*Kind) UnmarshalJSON

func (k *Kind) UnmarshalJSON(data []byte) error

type ViewMode

type ViewMode string

ViewMode represents the different view modes available in the project, by default will be "list"

const (
	ViewModeList     ViewMode = "list"
	ViewModeKanban   ViewMode = "kanban"
	ViewModeTimeline ViewMode = "timeline"
)

func (ViewMode) MarshalJSON

func (vm ViewMode) MarshalJSON() ([]byte, error)

func (*ViewMode) Set

func (vm *ViewMode) Set(s string) error

func (ViewMode) String

func (vm ViewMode) String() string

func (*ViewMode) Type

func (vm *ViewMode) Type() string

func (*ViewMode) UnmarshalJSON

func (vm *ViewMode) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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