config

package
v0.0.0-...-b066e35 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const EmptySectionsPerRow = -999
View Source
const RecommendedCommandNameConfig = "config"
View Source
const RecommendedCommandNameGet = "view"
View Source
const RecommendedCommandNameSet = "set"
View Source
const RecommendedCommandNameUpdateSection = "updatesection"

Variables

This section is empty.

Functions

func NewCmdConfig

func NewCmdConfig(name string, fullname string) *cobra.Command

func NewCmdConfigSet

func NewCmdConfigSet(name, fullname string) *cobra.Command

func NewCmdConfigUpdateSection

func NewCmdConfigUpdateSection(name, fullname string) *cobra.Command

func NewCmdConfigView

func NewCmdConfigView(name, fullname string) *cobra.Command

Types

type PanelViewer

type PanelViewer struct{}

func (*PanelViewer) View

func (pv *PanelViewer) View(swd time.Weekday, holi []string, secs []*config.ConfigSection, dsec, nm string, spp int, configViewMode, reportViewMode uint) error

type SetOptions

type SetOptions struct {
	*common.CommonOptions
	// contains filtered or unexported fields
}

func (*SetOptions) Complete

func (so *SetOptions) Complete(name string, cmd *cobra.Command, args []string) error

func (*SetOptions) Run

func (so *SetOptions) Run() (err error)

func (*SetOptions) Validate

func (so *SetOptions) Validate() error

type SimpleViewer

type SimpleViewer struct {
}

func (*SimpleViewer) View

func (pv *SimpleViewer) View(swd time.Weekday, holi []string, secs []*config.ConfigSection, dsec, nm string, spp int, configViewMode, reportViewMode uint) error

type UpdateSectionOptions

type UpdateSectionOptions struct {
	*common.CommonOptions
	// contains filtered or unexported fields
}

func (*UpdateSectionOptions) Complete

func (uso *UpdateSectionOptions) Complete(name string, cmd *cobra.Command, args []string) error

func (*UpdateSectionOptions) Run

func (uso *UpdateSectionOptions) Run() (err error)

func (*UpdateSectionOptions) Validate

func (uso *UpdateSectionOptions) Validate() error

type ViewOptions

type ViewOptions struct {
	*common.CommonOptions
	// contains filtered or unexported fields
}

func (*ViewOptions) Complete

func (goo *ViewOptions) Complete(name string, cmd *cobra.Command, args []string) error

func (*ViewOptions) Run

func (goo *ViewOptions) Run() error

func (*ViewOptions) Validate

func (goo *ViewOptions) Validate() error

type Viewer

type Viewer interface {
	View(startOfWeekDay time.Weekday, holidays []string, sections []*config.ConfigSection, defaultSection, name string, sectionsPerRow int, configViewMode, reportViewMode uint) error
}

Jump to

Keyboard shortcuts

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