config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureConfig added in v0.4.0

func ConfigureConfig()

Types

type Config

type Config struct {
	ProjectName  string    `yaml:"projectName"`
	Include      []string  `yaml:"include"`
	Exclude      []string  `yaml:"exclude"`
	Port         int64     `yaml:"port"`
	CacheDir     string    `yaml:"cacheDir"`
	DisableCache bool      `yaml:"disableCache"`
	ProjectPath  string    `yaml:"projectPath"`
	UsePackages  bool      `yaml:"use-packages"`
	Packages     *Packages `yaml:"packages"`
	Extensions   []string  `yaml:"extensions"`
}

func OpenConfig

func OpenConfig(path string) (cfg *Config, errOpen error, errDecode error)

func (*Config) AddPackagesToContext added in v0.3.0

func (c *Config) AddPackagesToContext(packages *Packages)

func (*Config) ToCliArgs

func (c *Config) ToCliArgs() []string

type Package added in v0.3.0

type Package struct {
	Name       string   `yaml:"name"`
	Namespaces []string `yaml:"namespaces"`
}

type Packages added in v0.3.0

type Packages []*Package

func (Packages) GetPackage added in v0.3.0

func (p Packages) GetPackage(className string) (*Package, bool)

Jump to

Keyboard shortcuts

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