core

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: MIT Imports: 11 Imported by: 8 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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, options *GenerateBuildPlanOptions) (*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"`
	DetectedProviders []string                             `json:"detectedProviders,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
	ConfigFilePath   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