config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// key - project name, value - component name
	ActiveComponents map[string]string `json:"activeComponents"`
}

type ConfigInfo

type ConfigInfo struct {
	Filename string
	Config
}

func New

func New() (*ConfigInfo, error)

func (*ConfigInfo) GetActiveComponent

func (c *ConfigInfo) GetActiveComponent(project string) string

GetCurrentComponet if no component is set as current returns empty string

func (*ConfigInfo) SetActiveComponent

func (c *ConfigInfo) SetActiveComponent(component string, project string) error

Jump to

Keyboard shortcuts

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