dialog

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialog

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

Dialog contains methods for the iteraction with promptui

func InitDialogFunctions

func InitDialogFunctions() Dialog

InitDialogFunctions initiate all methods

func (*Dialog) AddProjectName

func (d *Dialog) AddProjectName() (string, error)

AddProjectName sets project name

func (*Dialog) AddProjectPath

func (d *Dialog) AddProjectPath(path string) (string, error)

AddProjectPath sets project path

func (*Dialog) CallAddProjectDialog

func (d *Dialog) CallAddProjectDialog(pc ProjectConfig) error

CallAddProjectDialog calls project manager

func (*Dialog) DockerCliXdebugIniFilePath

func (d *Dialog) DockerCliXdebugIniFilePath(defaulPath string) (string, error)

DockerCliXdebugIniFilePath gets the path to xdebug cli ini file

func (*Dialog) DockerFpmXdebugIniFilePath

func (d *Dialog) DockerFpmXdebugIniFilePath(defaulPath string) (string, error)

DockerFpmXdebugIniFilePath gets the path to xdebug fpm ini file

func (*Dialog) DockerProjectPath

func (d *Dialog) DockerProjectPath(defaulPath string) (string, error)

DockerProjectPath gets the path to container

func (*Dialog) DockerService

func (d *Dialog) DockerService() (string, error)

DockerService call the request dialog to define docker service

func (*Dialog) DockerShell

func (d *Dialog) DockerShell() (int, string, error)

DockerShell defines shell type of docker main container

func (*Dialog) SelectProject

func (d *Dialog) SelectProject(list []string) (int, string, error)

SelectProject call project dropdown

func (*Dialog) SetAddProjectNameTest added in v1.8.2

func (d *Dialog) SetAddProjectNameTest(f func() (string, error))

SetAddProjectNameTest is used only for testing

func (*Dialog) SetAddProjectPathTest added in v1.8.2

func (d *Dialog) SetAddProjectPathTest(f func(string) (string, error))

SetAddProjectPathTest is used only for testing

func (*Dialog) SetMainContaner

func (d *Dialog) SetMainContaner(cl []string) (int, string, error)

SetMainContaner sets main container name

func (*Dialog) SetMainContanerUser added in v1.8.3

func (d *Dialog) SetMainContanerUser() (string, error)

SetMainContanerUser sets main container name

func (*Dialog) SetSelectProjectTest added in v1.8.2

func (d *Dialog) SetSelectProjectTest(f func([]string) (int, string, error))

SetSelectProjectTest is used only for testing

func (*Dialog) StartCommand

func (d *Dialog) StartCommand() (string, error)

StartCommand sets start docker command

func (*Dialog) StartDocker

func (d *Dialog) StartDocker() (string, error)

StartDocker call the request dialog to start docker

func (*Dialog) XDebugConfigLocation

func (d *Dialog) XDebugConfigLocation() (int, string, error)

XDebugConfigLocation defines config location

type ProjectConfig added in v1.8.2

type ProjectConfig interface {
	GetProjectName() string
	GetProjectPath() string
	SetProjectName(string)
	SetProjectPath(string)
}

ProjectConfig is for mocking parent functon in main file

Jump to

Keyboard shortcuts

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