server

package
v0.1.30 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindJobCommand

func FindJobCommand(task map[string]interface{}, folder string, config core.Config) (*exec.Cmd, error)

func FindRootCmd

func FindRootCmd(port int, host string, hotreload bool, folder string, config core.Config) (*exec.Cmd, error)

func FindRootCmdAsString

func FindRootCmdAsString(cfg RootCmdConfig) ([]string, error)

func GetAllPackages

func GetAllPackages(config core.Config) map[string]core.Package

func GetServerEnvironment

func GetServerEnvironment(port int, host string, hotreload bool, config core.Config) core.CommandEnv

func RunCommands

func RunCommands(commands []PackageCommand, oneByOne bool)

func StartGoServer

func StartGoServer(port int, host string, hotreload bool, folder string, config core.Config) *exec.Cmd

func StartPackageServer

func StartPackageServer(port int, host string, hotreload bool, config core.Config, envFiles []string, secrets []core.Env) bool

func StartPythonServer

func StartPythonServer(port int, host string, hotreload bool, folder string, config core.Config) *exec.Cmd

func StartTypescriptServer

func StartTypescriptServer(port int, host string, hotreload bool, folder string, config core.Config) *exec.Cmd

Types

type PackageCommand

type PackageCommand struct {
	Name    string
	Cwd     string
	Command string
	Args    []string
	Color   string
	Envs    core.CommandEnv
}

type PackageJson

type PackageJson struct {
	Scripts map[string]string `json:"scripts"`
}

type RootCmdConfig

type RootCmdConfig struct {
	Folder     string
	Hotreload  bool
	Production bool
	Docker     bool
	Entrypoint core.Entrypoints
	Envs       core.CommandEnv
}

Jump to

Keyboard shortcuts

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