config

package
v0.46.6-0...-87ab5ee Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const BuildEngineDefault = ""

BuildEngineDefault Default go-flutter engine version

View Source
const BuildOpenGlVersionDefault = "3.3"

BuildOpenGlVersionDefault Default OpenGL version for go-flutter

View Source
const BuildTargetDefault = "lib/main_desktop.dart"

BuildTargetDefault Default build target file

Variables

This section is empty.

Functions

func GetHoverFlavorYaml

func GetHoverFlavorYaml() string

GetHoverFlavorYaml returns the Hover yaml file

func PrintMissingField

func PrintMissingField(name, file, def string)

func SetHoverFlavor

func SetHoverFlavor(flavor string)

SetHoverFlavor sets the user defined hover flavor. eg. hover-develop.yaml, hover-staging.yaml, etc.

Types

type Config

type Config struct {
	ApplicationName  string `yaml:"application-name"`
	ExecutableName   string `yaml:"executable-name"`
	PackageName      string `yaml:"package-name"`
	OrganizationName string `yaml:"organization-name"`
	License          string
	Target           string
	BranchREMOVED    string `yaml:"branch"`
	CachePathREMOVED string `yaml:"cache-path"`
	OpenGL           string
	Engine           string `yaml:"engine-version"`
}

Config contains the parsed contents of hover.yaml

func GetConfig

func GetConfig() Config

GetConfig returns the working directory hover.yaml as a Config

func ReadConfigFile

func ReadConfigFile(configPath string) (Config, error)

ReadConfigFile reads a .yaml file at a path and return a correspond Config struct

func (Config) GetApplicationName

func (c Config) GetApplicationName(projectName string) string

func (Config) GetExecutableName

func (c Config) GetExecutableName(projectName string) string

func (Config) GetLicense

func (c Config) GetLicense() string

func (Config) GetOrganizationName

func (c Config) GetOrganizationName() string

func (Config) GetPackageName

func (c Config) GetPackageName(projectName string) string

Jump to

Keyboard shortcuts

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