knife

package
v0.0.0-...-b4febee Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deploy

type Deploy struct {
	// contains filtered or unexported fields
}

Deploy implements the deployer interface for knife commands

func NewDeployer

func NewDeployer() *Deploy

NewDeployer returns a new deployer

func (*Deploy) DeployChanges

func (d *Deploy) DeployChanges(changes []deploy.Change) (err error)

DeployChanges deploy all change in a local repo from the given sha range

func (*Deploy) PreviewChanges

func (d *Deploy) PreviewChanges(changes []deploy.Change) (err error)

PreviewChanges show changes that would be applied

func (*Deploy) WithKnifeExecutable

func (d *Deploy) WithKnifeExecutable(knifePath string) *Deploy

WithKnifeExecutable returns a new Deploy struct configured with the given knifePath

func (*Deploy) WithRunner

func (d *Deploy) WithRunner(cmd command.Runner) *Deploy

WithRunner returns a new Deploy struct configured with the given command runner

func (*Deploy) WithSubdirectory

func (d *Deploy) WithSubdirectory(dir string) *Deploy

WithSubdirectory returns a new Deploy struct configured with the given command runner

Jump to

Keyboard shortcuts

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