dependencymanager

package
v1.20.5 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:              "dependencies",
	Short:            "Manage contracts and dependencies",
	TraverseChildren: true,
	GroupID:          "manager",
	Aliases:          []string{"deps"},
}

Functions

This section is empty.

Types

type DependencyInstaller

type DependencyInstaller struct {
	Gateways        map[string]gateway.Gateway
	Logger          output.Logger
	State           *flowkit.State
	SaveState       bool
	TargetDir       string
	SkipDeployments bool
	SkipAlias       bool
	// contains filtered or unexported fields
}

func NewDependencyInstaller

func NewDependencyInstaller(logger output.Logger, state *flowkit.State, saveState bool, targetDir string, flags Flags) (*DependencyInstaller, error)

NewDependencyInstaller creates a new instance of DependencyInstaller

func (*DependencyInstaller) Add

Add processes a single dependency and installs it and any dependencies it has, as well as adding it to the state

func (*DependencyInstaller) AddBySourceString added in v1.20.0

func (di *DependencyInstaller) AddBySourceString(depSource, customName string) error

AddBySourceString processes a single dependency and installs it and any dependencies it has, as well as adding it to the state

func (*DependencyInstaller) AddMany added in v1.20.0

func (di *DependencyInstaller) AddMany(dependencies []config.Dependency) error

AddMany processes multiple dependencies and installs them as well as adding them to the state

func (*DependencyInstaller) Install

func (di *DependencyInstaller) Install() error

Install processes all the dependencies in the state and installs them and any dependencies they have

type Flags added in v1.20.0

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

func (*Flags) AddToCommand added in v1.20.0

func (f *Flags) AddToCommand(cmd *cobra.Command)

Jump to

Keyboard shortcuts

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