config

package
v0.47.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 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 added in v0.46.0

func GetHoverFlavorYaml() string

GetHoverFlavorYaml returns the Hover yaml file

func PrintMissingField added in v0.41.3

func PrintMissingField(name, file, def string)

func SetHoverFlavor added in v0.46.0

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 added in v0.41.3

func (c Config) GetApplicationName(projectName string) string

func (Config) GetExecutableName added in v0.41.3

func (c Config) GetExecutableName(projectName string) string

func (Config) GetLicense added in v0.41.3

func (c Config) GetLicense() string

func (Config) GetOrganizationName added in v0.46.3

func (c Config) GetOrganizationName() string

func (Config) GetPackageName added in v0.41.3

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