config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureConfigDirectory

func EnsureConfigDirectory(path string) error

func EnsureStartUpScript

func EnsureStartUpScript() error

Types

type Config

type Config struct {
	Version string `json:"-"`

	Spaces map[string]*models.Space `json:"spaces"`
	Tmux   bool                     `json:"tmux"`
	// contains filtered or unexported fields
}
var AppConfig *Config

func Load

func Load() (*Config, error)

func (*Config) GetSpace

func (cfg *Config) GetSpace(name string) (*models.Space, error)

func (*Config) GetSpaceNames

func (cfg *Config) GetSpaceNames() []string

func (*Config) GetSpaces

func (cfg *Config) GetSpaces() []*models.Space

func (*Config) NewSpace added in v1.2.0

func (cfg *Config) NewSpace(name string) error

func (*Config) RemoveSpace

func (cfg *Config) RemoveSpace(name string) error

func (*Config) Save

func (cfg *Config) Save() error

type ConfigMetadata

type ConfigMetadata struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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