utils

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abort

func Abort(msg string)

func ErrorMsg

func ErrorMsg(msg string)

func Info

func Info(msg string)

func ParseCommand

func ParseCommand(cmd string) []string

func PromptBuildUrl

func PromptBuildUrl(buildUrlValues []KeyValuePair) (buildUrl string, err error)

func PromptCleanAndRebuild

func PromptCleanAndRebuild() bool

func PromptEnv

func PromptEnv(envValues []KeyValuePair) (env string, err error)

func PromptEnvVariable

func PromptEnvVariable(envVariable KeyValuePair) bool

func PromptInitConfig

func PromptInitConfig() bool

func PromptVersionUpdate

func PromptVersionUpdate() bool

func PromptWebRenderer

func PromptWebRenderer(rendererValues []KeyValuePair) (webRenderer string, err error)

func RunCommand

func RunCommand(commandArgs []string) error

func Success

func Success(msg string)

func Warning

func Warning(msg string)

Types

type Config

type Config struct {
	Env       []KeyValuePair `json:"env"`
	Url       []KeyValuePair `json:"url"`
	Renderer  []KeyValuePair `json:"renderer"`
	Variables []KeyValuePair `json:"variables"`
}

func GetConfig

func GetConfig() (config Config, err error)

func InitConfig

func InitConfig() (config Config, err error)

type KeyValuePair

type KeyValuePair struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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