Documentation
¶
Index ¶
- func Confirm(streams Streams, prompt string) (bool, error)
- func IsTerminal(streams Streams) bool
- func NewAuthCommand(resolveAuthApp AuthResolver, resolveAuthService AuthServiceResolver, ...) *cobra.Command
- func NewConfigCommand(resolveConfigApp ConfigResolver, streams Streams) *cobra.Command
- func NewFocusCommand(resolveFocusApp FocusResolver, resolveConfigApp ConfigResolver, ...) *cobra.Command
- func NewHabitCommand(resolveHabitApp HabitResolver, resolveConfigApp ConfigResolver, ...) *cobra.Command
- func NewProjectCommand(resolveProjectApp ProjectResolver, resolveConfigApp ConfigResolver, ...) *cobra.Command
- func NewQuickCommand(resolveQuickApp QuickResolver, streams Streams) *cobra.Command
- func NewRootCommand(opts RootOptions) *cobra.Command
- func NewTaskCommand(resolveTaskApp TaskResolver, resolveConfigApp ConfigResolver, streams Streams) *cobra.Command
- func NewTodayCommand(resolveTaskApp TaskResolver, resolveConfigApp ConfigResolver, streams Streams) *cobra.Command
- func Prompt(streams Streams, label, defaultValue string) (string, error)
- func PromptSecret(streams Streams, label string, hasExisting bool) (string, error)
- func SelectProject(streams Streams, projects []domain.Project) (domain.Project, error)
- func SelectRegion(streams Streams, defaultRegion string) (string, error)
- type AuthResolver
- type AuthServiceResolver
- type ConfigResolver
- type FocusResolver
- type HabitResolver
- type ProjectResolver
- type QuickResolver
- type RegionResolver
- type RootOptions
- type Streams
- type TaskResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTerminal ¶
func NewAuthCommand ¶
func NewAuthCommand(resolveAuthApp AuthResolver, resolveAuthService AuthServiceResolver, resolveRegion RegionResolver, streams Streams) *cobra.Command
func NewConfigCommand ¶
func NewConfigCommand(resolveConfigApp ConfigResolver, streams Streams) *cobra.Command
func NewFocusCommand ¶
func NewFocusCommand(resolveFocusApp FocusResolver, resolveConfigApp ConfigResolver, streams Streams) *cobra.Command
func NewHabitCommand ¶
func NewHabitCommand(resolveHabitApp HabitResolver, resolveConfigApp ConfigResolver, streams Streams) *cobra.Command
func NewProjectCommand ¶
func NewProjectCommand(resolveProjectApp ProjectResolver, resolveConfigApp ConfigResolver, streams Streams) *cobra.Command
func NewQuickCommand ¶
func NewQuickCommand(resolveQuickApp QuickResolver, streams Streams) *cobra.Command
func NewRootCommand ¶
func NewRootCommand(opts RootOptions) *cobra.Command
func NewTaskCommand ¶
func NewTaskCommand(resolveTaskApp TaskResolver, resolveConfigApp ConfigResolver, streams Streams) *cobra.Command
func NewTodayCommand ¶
func NewTodayCommand(resolveTaskApp TaskResolver, resolveConfigApp ConfigResolver, streams Streams) *cobra.Command
func PromptSecret ¶
func SelectProject ¶
Types ¶
type AuthResolver ¶
type AuthServiceResolver ¶
type AuthServiceResolver func() (app.AuthService, error)
type ConfigResolver ¶
type FocusResolver ¶
type HabitResolver ¶
type ProjectResolver ¶
type ProjectResolver func() (*app.ProjectApp, error)
type QuickResolver ¶
type QuickResolver func() (*app.QuickAddApp, error)
type RegionResolver ¶
type RootOptions ¶
type RootOptions struct {
Version string
Streams Streams
LoginAuthResolver AuthResolver
AuthServiceResolver AuthServiceResolver
RegionResolver RegionResolver
ProjectResolver ProjectResolver
TaskResolver TaskResolver
FocusResolver FocusResolver
HabitResolver HabitResolver
QuickResolver QuickResolver
ConfigResolver ConfigResolver
}
type TaskResolver ¶
Click to show internal directories.
Click to hide internal directories.