mwdd

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Context string

Functions

func CommandAndEnvFromArgs

func CommandAndEnvFromArgs(args []string) ([]string, []string)

CommandAndEnvFromArgs takes arguments passed to a cobra command and extracts any prefixing env var definitions from them.

func NewImageCmd added in v0.22.0

func NewImageCmd(service string) *cobra.Command

func NewImageCmdP added in v0.22.0

func NewImageCmdP(service *string) *cobra.Command

func NewServiceCmd

func NewServiceCmd(name string, texts ServiceTexts, aliases []string) *cobra.Command

func NewServiceCmdDifferingNames added in v0.13.0

func NewServiceCmdDifferingNames(commandName string, serviceName string, texts ServiceTexts, aliases []string) *cobra.Command

func NewServiceCmdDifferingNamesP added in v0.22.0

func NewServiceCmdDifferingNamesP(commandName *string, serviceName *string, texts ServiceTexts, aliases []string) *cobra.Command

NewServiceCmdDifferingNames a new command for a single service, such as mailhog.

func NewServiceCmdP added in v0.22.0

func NewServiceCmdP(name *string, texts ServiceTexts, aliases []string) *cobra.Command

NewServiceCmd a new command for a single service, such as mailhog.

func NewServiceCommandCmd

func NewServiceCommandCmd(service string, commands []string, aliases []string) *cobra.Command

func NewServiceCommandCmdP added in v0.22.0

func NewServiceCommandCmdP(service *string, commands []string, aliases []string) *cobra.Command

func NewServiceCreateCmd

func NewServiceCreateCmd(name string, onCreateText string) *cobra.Command

func NewServiceCreateCmdP added in v0.22.0

func NewServiceCreateCmdP(name *string, onCreateText string) *cobra.Command

func NewServiceDestroyCmd

func NewServiceDestroyCmd(name string) *cobra.Command

func NewServiceDestroyCmdP added in v0.22.0

func NewServiceDestroyCmdP(name *string) *cobra.Command

func NewServiceExecCmd

func NewServiceExecCmd(name string, service string) *cobra.Command

func NewServiceExecCmdP added in v0.22.0

func NewServiceExecCmdP(name *string, service *string) *cobra.Command

func NewServiceExposeCmd added in v0.20.0

func NewServiceExposeCmd(name string) *cobra.Command

func NewServiceExposeCmdP added in v0.22.0

func NewServiceExposeCmdP(name *string) *cobra.Command

func NewServiceStartCmd added in v0.13.0

func NewServiceStartCmd(name string) *cobra.Command

func NewServiceStartCmdP added in v0.22.0

func NewServiceStartCmdP(name *string) *cobra.Command

func NewServiceStopCmd added in v0.13.0

func NewServiceStopCmd(name string) *cobra.Command

func NewServiceStopCmdP added in v0.22.0

func NewServiceStopCmdP(name *string) *cobra.Command

func NewServicesCmd

func NewServicesCmd(groupName string, texts ServiceTexts, aliases []string) *cobra.Command

NewServicesCmd a new command for a set of grouped services, such as various flavours of shellbox.

func NewWhereCmd

func NewWhereCmd(description string, pathProvider WherePathProvider) *cobra.Command

Types

type MWDD

type MWDD struct {
	BaseDir string
}

MWDD representation of a mwdd v2 setup.

func DefaultForUser

func DefaultForUser() MWDD

DefaultForUser returns the default mwdd working directory for the user.

func (MWDD) ComposerLocalJsonExists added in v0.20.0

func (m MWDD) ComposerLocalJsonExists() bool

func (MWDD) ComposerLocalJsonPath added in v0.20.0

func (m MWDD) ComposerLocalJsonPath() string

func (MWDD) Directory

func (m MWDD) Directory() string

Directory the directory containing the development environment.

func (MWDD) DockerCompose added in v0.22.0

func (m MWDD) DockerCompose() dockercompose.Project

func (MWDD) EnsureReady

func (m MWDD) EnsureReady()

EnsureReady ...

func (MWDD) Env

func (m MWDD) Env() dotenv.File

Env ...

func (MWDD) ExtensionsCheckedOut added in v0.20.0

func (m MWDD) ExtensionsCheckedOut() []string

func (MWDD) LocalSettingsContents added in v0.20.0

func (m MWDD) LocalSettingsContents() string

func (MWDD) LocalSettingsPath added in v0.20.0

func (m MWDD) LocalSettingsPath() string

func (MWDD) RecordHostUsageBySite

func (m MWDD) RecordHostUsageBySite(host string)

RecordHostUsageBySite records a host in a local file as used at some point.

func (MWDD) RemoveUsedHostsIfExists added in v0.17.0

func (m MWDD) RemoveUsedHostsIfExists()

func (MWDD) SkinsCheckedOut added in v0.20.0

func (m MWDD) SkinsCheckedOut() []string

func (MWDD) UsedHosts

func (m MWDD) UsedHosts() []string

UsedHosts lists all hosts that have been used at some point.

type ServiceTexts added in v0.20.0

type ServiceTexts struct {
	// Long description for the top level command
	Long string
	// Output after the service has been created
	OnCreate string
}

type WherePathProvider

type WherePathProvider func() string

Directories

Path Synopsis
Records the state of the various services that have been created or stopped.
Records the state of the various services that have been created or stopped.

Jump to

Keyboard shortcuts

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