server

package
v0.1.77 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindGoExecutable added in v0.1.59

func FindGoExecutable() (string, error)

FindGoExecutable checks for go in PATH and returns the executable name Returns an error if go is not available

func FindJobCommand

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

func FindNodeExecutable added in v0.1.59

func FindNodeExecutable() (string, error)

FindNodeExecutable checks for node in PATH and returns the executable name Returns an error if node is not available

func FindPackageManagerExecutable added in v0.1.59

func FindPackageManagerExecutable() (string, error)

FindPackageManagerExecutable checks for npm, yarn, or pnpm in PATH Returns the executable name and an error if none are available

func FindPythonEntryFile added in v0.1.59

func FindPythonEntryFile(folder string) string

FindPythonEntryFile searches for common Python entry files in the given folder Returns the relative path to the entry file if found, empty string otherwise

func FindPythonExecutable added in v0.1.59

func FindPythonExecutable() (string, error)

FindPythonExecutable checks for python or python3 in PATH and returns the executable name Returns an error if neither python nor python3 is available

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 HasPythonEntryFile added in v0.1.59

func HasPythonEntryFile(folder string) bool

HasPythonEntryFile checks if common Python entry files exist in the given folder

func RunCommands

func RunCommands(commands []PackageCommand, oneByOne bool)

func StartEntrypoint added in v0.1.59

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

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