app

package
v0.0.0-...-381feec Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 7 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 {
	IsEspProject bool
	Backend      string
	OrgName      string
	OrgPrefix    string
	AppName      string
	Envs         []string
	Env          string
	Path         string
	Filename     string
}

func New

func New(isEspFile bool) *Config

New creates a new config object

func (*Config) CheckEnv

func (c *Config) CheckEnv(env string) bool

func (Config) GetAppParamPath

func (c Config) GetAppParamPath(p string) string

GetAppParamPath builds the application's param path from the config file

func (Config) GetAppPath

func (c Config) GetAppPath() string

GetAppPath returns the application's base path from the config

func (*Config) InitQuestions

func (c *Config) InitQuestions()

Init asks the user for properties to put in the espFile

func (*Config) UpdateWithInput

func (c *Config) UpdateWithInput(ci configInput)

UpdateWithInput updates the esp config struct with answers from the survey questions

func (*Config) WriteConfig

func (c *Config) WriteConfig() error

WriteConfig saves the app config to a file

Jump to

Keyboard shortcuts

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