command

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallCliCommand

func CallCliCommand(commandName string, cfg cliCommandHandleProjectConfig, d callCliCommandDialog, options callCliCommandOptions) *cli.Command

CallCliCommand calls a range of differnt cli commands

func CallComposerCommand

func CallComposerCommand(composercommand string, cfg callComposerCommandProjectConfig, d callComposerCommandDialog, options callComposerCommandOptions) *cli.Command

CallComposerCommand generates composer commands https://medium.com/@ssttehrani/containers-from-scratch-with-golang-5276576f9909 https://phase2.github.io/devtools/common-tasks/ssh-into-a-container/

func CallCopyrightCommand

func CallCopyrightCommand(cfg copyRightGlobalConfig, options copyrightOptions) *cli.Command

CallCopyrightCommand runs copyright dialog

func CallMagentoCommand added in v1.7.0

func CallMagentoCommand(cfg magentoGlobalConfig, d magentoDialog, options magentoOptions) *cli.Command

CallMagentoCommand runs copyright dialog

func CallRestartContainers

func CallRestartContainers(options callRestartContainersOptions) *cli.Command

CallRestartContainers restart docker custom containers

func CallRestartMainContainer

func CallRestartMainContainer(cfg callStartMainContainerProjectConfig, d callStartProjectBasicDialog, options restartProjectOptions) *cli.Command

CallRestartMainContainer restarts docker main container

func CallStartContainers

func CallStartContainers(options callStartContainersOptions) *cli.Command

CallStartContainers runs docker custom container

func CallStartMainContainer

func CallStartMainContainer(cfg callStartMainContainerProjectConfig, d callStartProjectBasicDialog, options startProjectOptions) *cli.Command

CallStartMainContainer runs docker main container

func CallStartProjectBasic

func CallStartProjectBasic(cfg callStartProjectBasicProjectConfig, d callStartProjectBasicDialog, options startProjectOptions) *cli.Command

CallStartProjectBasic runs docker project

func CallStartProjectForceOrphans

func CallStartProjectForceOrphans(cfg callStartProjectBasicProjectConfig, d callStartProjectBasicDialog, options startProjectOptions) *cli.Command

CallStartProjectForceOrphans runs docker project

func CallStartProjectForceRecreate

func CallStartProjectForceRecreate(cfg callStartProjectBasicProjectConfig, d callStartProjectBasicDialog, options startProjectOptions) *cli.Command

CallStartProjectForceRecreate runs docker project

func CallStartProjectOrphans

func CallStartProjectOrphans(cfg callStartProjectBasicProjectConfig, d callStartProjectBasicDialog, options startProjectOptions) *cli.Command

CallStartProjectOrphans runs docker project

func CallStopAllContainersCommand

func CallStopAllContainersCommand(options stopContainerOptions) *cli.Command

CallStopAllContainersCommand stops all docker containers

func CallStopMainContainerCommand

func CallStopMainContainerCommand(cfg callStopMainContainerCommandProjectConfig, d callStopMainContainerCommandDialog, options stopContainerOptions) *cli.Command

CallStopMainContainerCommand stops main container

func CallStopOneContainerCommand

func CallStopOneContainerCommand(options stopContainerOptions) *cli.Command

CallStopOneContainerCommand stops selected docker containers @todo

func CallStopSelectedContainersCommand

func CallStopSelectedContainersCommand(options stopContainerOptions) *cli.Command

CallStopSelectedContainersCommand stops selected docker containers

func CheckMagentoBin added in v1.8.5

func CheckMagentoBin(containerName string, magentoBin string) (bool, error)

CheckMagentoBin checks magento bin path

func CheckXdebugStatus added in v1.8.8

func CheckXdebugStatus(app *cli.App, args []string) (bool, error)

CheckXdebugStatus checks xdebug current state

func GetProjectPath

func GetProjectPath(d getProjectPathDialog, options pathOptions) *cli.Command

GetProjectPath gets absolute path to the project without doing anything with docker

func ShellCommand

func ShellCommand(cfg shellConfig, d shellDialog, options shellOptions) *cli.Command

ShellCommand changes shell type

func SyncCommand

func SyncCommand(direction string, cfg syncProjectConfig, d syncCommandDialog, options syncOptions) *cli.Command

SyncCommand does the syncronization between container and project

func XDebugCommand

func XDebugCommand(xdebugAction string, cfg xdebugProjectConfig, d xDebugCommandDialog, options xDebugOptions) *cli.Command

XDebugCommand enable/disable xDebug

Types

type ExecOptions added in v1.8.1

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

ExecOptions defines exec options

func (*ExecOptions) GetArgs added in v1.8.1

func (eo *ExecOptions) GetArgs() []string

GetArgs gets arguments for the command

func (*ExecOptions) GetCommand added in v1.8.1

func (eo *ExecOptions) GetCommand() string

GetCommand gets main command, ie docker

func (*ExecOptions) GetDetach added in v1.8.1

func (eo *ExecOptions) GetDetach() bool

GetDetach returns detach mode status

func (*ExecOptions) GetTty added in v1.8.1

func (eo *ExecOptions) GetTty() bool

GetTty returns tty mode status

func (*ExecOptions) GetUser added in v1.8.1

func (eo *ExecOptions) GetUser() string

GetUser gets user to use in docker container

func (*ExecOptions) GetWorkingDir added in v1.8.1

func (eo *ExecOptions) GetWorkingDir() string

GetWorkingDir returns working directory

Jump to

Keyboard shortcuts

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