cfg

package
v1.0.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cfg

type Cfg struct {
	// Cfg   *api.Config
	Path  string
	Globs []string

	SelectedItem string
	// contains filtered or unexported fields
}

func New

func New(p string, globs ...string) *Cfg

func (*Cfg) AddItem

func (c *Cfg) AddItem(name string, i *Item)

func (*Cfg) GetItem

func (c *Cfg) GetItem(name string) *Item

func (*Cfg) ListItemsStr

func (c *Cfg) ListItemsStr() []string

func (*Cfg) Run

func (c *Cfg) Run() error

type Item

type Item struct {
	IsSelected bool
	// contains filtered or unexported fields
}

func NewItem

func NewItem(fullPath string, c *api.Config, info os.FileInfo, title, desc string) *Item

Jump to

Keyboard shortcuts

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