config

package
v0.0.0-...-d51039a Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName         = "run-flogo-app"
	ConfigFileName  = ".run-flogo-app"
	MaxAppsWithList = 5

	DefaultAppPatternLinux   = `^.+-linux_amd64.*$`
	DefaultAppPatternWindows = `^.+-windows_amd64.*$`
	DefaultAppPatternDarwin  = `^.+-darwin_amd64.*$`

	GithubLastestReleaseURL = "https://api.github.com/repos/abhijitWakchaure/run-flogo-app/releases/latest"
	GithubDownloadBaseURL   = "https://github.com/abhijitWakchaure/run-flogo-app/releases/download/"
	GithubBaseURL           = "https://github.com/abhijitWakchaure/run-flogo-app"
	GithubIssuesURL         = "https://github.com/abhijitWakchaure/run-flogo-app/issues"

	InstallPathLinux   = "/usr/local/bin"
	InstallPathDarwin  = "/usr/local/bin"
	InstallPathWindows = `C:\Windows\system32`

	LogLevelInfo  = "INFO"
	LogLevelDebug = "DEBUG"
	LogLevelTrace = "TRACE"
)

Constants for app config

Variables

View Source
var VERSION = "undefined"

VERSION ...

Functions

func GetUserHomeDir

func GetUserHomeDir() string

GetUserHomeDir ...

func Print

func Print(appConfig *AppConfig)

Print prints the current config

func Write

func Write(appConfig *AppConfig)

Write will write the config into file

Types

type AppConfig

type AppConfig struct {
	AppsDir    string `json:"appsDir"`
	AppPattern string `json:"appPattern"`
}

AppConfig ...

Jump to

Keyboard shortcuts

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