core

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatBuildResult

func FormatBuildResult(br *BuildResult, options ...PrintOptions) string

func GenerateConfigFromEnvironment

func GenerateConfigFromEnvironment(app *app.App, env *app.Environment) *config.Config

GenerateConfigFromEnvironment generates a config from the environment

func GenerateConfigFromFile

func GenerateConfigFromFile(app *app.App, env *app.Environment) (*config.Config, error)

GenerateConfigFromFile generates a config from the config file

func GenerateConfigFromOptions

func GenerateConfigFromOptions(options *GenerateBuildPlanOptions) *config.Config

GenerateConfigFromOptions generates a config from the CLI options

func GetConfig

func GetConfig(app *app.App, env *app.Environment, options *GenerateBuildPlanOptions) (*config.Config, error)

GetConfig merges the options, environment, and file config into a single config

func PrettyPrintBuildResult

func PrettyPrintBuildResult(buildResult *BuildResult, options ...PrintOptions)

Types

type BuildResult

type BuildResult struct {
	Plan             *plan.BuildPlan                      `json:"plan,omitempty"`
	ResolvedPackages map[string]*resolver.ResolvedPackage `json:"resolvedPackages,omitempty"`
	Metadata         map[string]string                    `json:"metadata,omitempty"`
}

func GenerateBuildPlan

func GenerateBuildPlan(app *app.App, env *app.Environment, options *GenerateBuildPlanOptions) (*BuildResult, error)

type GenerateBuildPlanOptions

type GenerateBuildPlanOptions struct {
	BuildCommand     string
	StartCommand     string
	PreviousVersions map[string]string
}

type PrintOptions

type PrintOptions struct {
	Metadata bool
	Version  string
}

Directories

Path Synopsis
php

Jump to

Keyboard shortcuts

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