porter

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultMixinVersion is the default version of mixins installed when it's not present
	DefaultMixinVersion = "canary"
)
View Source
var (
	// DefaultPorterVersion is the default version of Porter that is installed when it's not present
	DefaultPorterVersion = "v1.0.16"
)

Functions

func EnsureMixin

func EnsureMixin(mixin InstallMixinOptions) error

EnsureMixin installs the specified mixin.

func EnsurePorter

func EnsurePorter()

Install the default version of porter, if porter isn't already installed

func EnsurePorterAt

func EnsurePorterAt(version string)

Install the specified version of porter

func GetPorterHome

func GetPorterHome() string

GetPorterHome determines the current PORTER_HOME directory

func UseBinForPorterHome

func UseBinForPorterHome()

UseBinForPorterHome sets the bin/ directory to be PORTER_HOME

func UsePorterHome

func UsePorterHome(home string)

UsePorterHome sets the specified directory to be PORTER_HOME

Types

type InstallMixinOptions

type InstallMixinOptions struct {
	Name    string
	URL     string
	Feed    string
	Version string
}

Jump to

Keyboard shortcuts

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