helpers

package
v0.114.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CliEnv added in v0.112.0

func CliEnv(flags RootFlags) []string

CliEnv expands env with cli specific env vars - to been able to resend it back to cli from js SDK

func KillExistingHooksProcess added in v0.110.2

func KillExistingHooksProcess(serverListenPort int, log abstractlogger.Logger)

KillExistingHooksProcess kills the existing hooks process before we start the new one some IDEs, like Goland, don't send a SIGINT to the process group this leads to the middleware hooks server (sub-process) not being killed on subsequent runs of the up command, we're not able to listen on the same port

func ServerPortFromConfig added in v0.110.2

func ServerPortFromConfig(configJsonPath string) (int, error)

Types

type RootFlags added in v0.112.0

type RootFlags struct {
	CliLogLevel string
	PrettyLogs  bool
	DebugMode   bool
}

type ServerRunConfig

type ServerRunConfig struct {
	WunderGraphDirAbs string
	ServerScriptFile  string
	Production        bool
	Env               []string
}

Jump to

Keyboard shortcuts

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