addon

package
v1.1.33 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddonConfig

type AddonConfig struct {
	Name    string
	Enabled bool
}

type AddonsConfig

type AddonsConfig struct {
	Addons []*AddonConfig
}

func LoadAddonsConfig

func LoadAddonsConfig() (*AddonsConfig, error)

LoadAddonsConfig loads the addons configuration from the `~/.jx/addon.yml` file if it exists

func (*AddonsConfig) GetOrCreate

func (c *AddonsConfig) GetOrCreate(name string) *AddonConfig

GetOrCreate returns the addon configuration for the given name or creates a new config object

func (*AddonsConfig) Save

func (c *AddonsConfig) Save() error

Save saves the addons configuration to the `~/.jx/addon.yml` file

Jump to

Keyboard shortcuts

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