context

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ContextFileName = ".contextfind.toml"

Variables

This section is empty.

Functions

func DeleteContextFileIfEmpty

func DeleteContextFileIfEmpty() error

func GetContextFilePath

func GetContextFilePath() string

Types

type Context

type Context struct {
	Name  string   `toml:"name"`
	Files []string `toml:"files"`
}

type ContextFile

type ContextFile struct {
	Contexts []Context `toml:"contexts"`
}

func LoadContextFile

func LoadContextFile() (*ContextFile, error)

func (*ContextFile) AddOrUpdateContext

func (cf *ContextFile) AddOrUpdateContext(name string, files []string)

func (*ContextFile) DeleteContext

func (cf *ContextFile) DeleteContext(name string) bool

func (*ContextFile) GetContext

func (cf *ContextFile) GetContext(name string) (*Context, bool)

func (*ContextFile) GetContextNames

func (cf *ContextFile) GetContextNames() []string

func (*ContextFile) IsEmpty

func (cf *ContextFile) IsEmpty() bool

func (*ContextFile) Save

func (cf *ContextFile) Save() error

Jump to

Keyboard shortcuts

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