ppm

package
v0.0.0-...-277eb20 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConversionFlow

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

ConversionFlow manages a PPM conversion flow

func NewConversionFlow

func NewConversionFlow(prime ConversionFlowPrimeable) *ConversionFlow

NewConversionFlow creates a new conversion flow structure

func (*ConversionFlow) StartIfNecessary

func (cf *ConversionFlow) StartIfNecessary() (bool, error)

StartIfNecessary checks if the user is in a project directory. If not, they are asked to create a project, and (in a wizard-kind-of way) informed about the consequences.

type ConversionFlowPrimeable

type ConversionFlowPrimeable interface {
	primer.Prompter
	primer.Outputer
	primer.Projecter
	primer.Analyticer
}

ConversionFlowPrimeable defines interface needed to initialize a conversion flow

type Shim

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

func NewShim

func NewShim(prime *primer.Values) *Shim

func (*Shim) PrintDefault

func (s *Shim) PrintDefault() error

func (*Shim) PrintMain

func (s *Shim) PrintMain() error

func (*Shim) PrintSuggestion

func (s *Shim) PrintSuggestion(ppmIntent, newCommand, docLink string) error

func (*Shim) RunInstall

func (s *Shim) RunInstall(converted bool, args ...string) error

func (*Shim) RunList

func (s *Shim) RunList(converted bool, args ...string) error

func (*Shim) RunPPM

func (s *Shim) RunPPM(converted bool, args ...string) error

func (*Shim) RunRemove

func (s *Shim) RunRemove(converted bool, args ...string) error

func (*Shim) RunUpgrade

func (s *Shim) RunUpgrade(converted bool, args ...string) error

Jump to

Keyboard shortcuts

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