Documentation
¶
Index ¶
- func FindGoExecutable() (string, error)
- func FindJobCommand(task map[string]interface{}, folder string, config core.Config) (*exec.Cmd, error)
- func FindNodeExecutable() (string, error)
- func FindPackageManagerExecutable() (string, error)
- func FindPythonEntryFile(folder string) string
- func FindPythonExecutable() (string, error)
- func FindRootCmd(port int, host string, hotreload bool, folder string, config core.Config) (*exec.Cmd, error)
- func FindRootCmdAsString(cfg RootCmdConfig) ([]string, error)
- func GetAllPackages(config core.Config) map[string]core.Package
- func GetServerEnvironment(port int, host string, hotreload bool, config core.Config) core.CommandEnv
- func HasPythonEntryFile(folder string) bool
- func RunCommands(commands []PackageCommand, oneByOne bool)
- func StartEntrypoint(port int, host string, hotreload bool, folder string, config core.Config) *exec.Cmd
- func StartGoServer(port int, host string, hotreload bool, folder string, config core.Config) *exec.Cmd
- func StartPackageServer(port int, host string, hotreload bool, config core.Config, envFiles []string, ...) bool
- func StartPythonServer(port int, host string, hotreload bool, folder string, config core.Config) *exec.Cmd
- func StartTypescriptServer(port int, host string, hotreload bool, folder string, config core.Config) *exec.Cmd
- type PackageCommand
- type PackageJson
- type RootCmdConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindGoExecutable ¶ added in v0.1.59
FindGoExecutable checks for go in PATH and returns the executable name Returns an error if go is not available
func FindJobCommand ¶
func FindNodeExecutable ¶ added in v0.1.59
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
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
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
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 FindRootCmdAsString ¶
func FindRootCmdAsString(cfg RootCmdConfig) ([]string, error)
func GetServerEnvironment ¶
func HasPythonEntryFile ¶ added in v0.1.59
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 StartGoServer ¶
func StartPackageServer ¶
func StartPythonServer ¶
Types ¶
type PackageCommand ¶
type PackageJson ¶
type RootCmdConfig ¶
type RootCmdConfig struct {
Folder string
Hotreload bool
Production bool
Docker bool
Entrypoint core.Entrypoints
Envs core.CommandEnv
}