Documentation ¶
Index ¶
- type ConversionFlow
- type ConversionFlowPrimeable
- type Shim
- func (s *Shim) PrintDefault() error
- func (s *Shim) PrintMain() error
- func (s *Shim) PrintSuggestion(ppmIntent, newCommand, docLink string) error
- func (s *Shim) RunInstall(converted bool, args ...string) error
- func (s *Shim) RunList(converted bool, args ...string) error
- func (s *Shim) RunPPM(converted bool, args ...string) error
- func (s *Shim) RunRemove(converted bool, args ...string) error
- func (s *Shim) RunUpgrade(converted bool, args ...string) error
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 (*Shim) PrintDefault ¶
func (*Shim) PrintSuggestion ¶
Click to show internal directories.
Click to hide internal directories.