Documentation ¶
Index ¶
- Variables
- func CommandAndEnvFromArgs(args []string) ([]string, []string)
- func NewImageCmd(service string) *cobra.Command
- func NewImageCmdP(service *string) *cobra.Command
- func NewServiceCmd(name string, texts ServiceTexts, aliases []string) *cobra.Command
- func NewServiceCmdDifferingNames(commandName string, serviceName string, texts ServiceTexts, aliases []string) *cobra.Command
- func NewServiceCmdDifferingNamesP(commandName *string, serviceName *string, texts ServiceTexts, aliases []string) *cobra.Command
- func NewServiceCmdP(name *string, texts ServiceTexts, aliases []string) *cobra.Command
- func NewServiceCommandCmd(service string, commands []string, aliases []string) *cobra.Command
- func NewServiceCommandCmdP(service *string, commands []string, aliases []string) *cobra.Command
- func NewServiceCreateCmd(name string, onCreateText string) *cobra.Command
- func NewServiceCreateCmdP(name *string, onCreateText string) *cobra.Command
- func NewServiceDestroyCmd(name string) *cobra.Command
- func NewServiceDestroyCmdP(name *string) *cobra.Command
- func NewServiceExecCmd(name string, service string) *cobra.Command
- func NewServiceExecCmdP(name *string, service *string) *cobra.Command
- func NewServiceExposeCmd(name string) *cobra.Command
- func NewServiceExposeCmdP(name *string) *cobra.Command
- func NewServiceStartCmd(name string) *cobra.Command
- func NewServiceStartCmdP(name *string) *cobra.Command
- func NewServiceStopCmd(name string) *cobra.Command
- func NewServiceStopCmdP(name *string) *cobra.Command
- func NewServicesCmd(groupName string, texts ServiceTexts, aliases []string) *cobra.Command
- func NewWhereCmd(description string, pathProvider WherePathProvider) *cobra.Command
- type MWDD
- func (m MWDD) ComposerLocalJsonExists() bool
- func (m MWDD) ComposerLocalJsonPath() string
- func (m MWDD) Directory() string
- func (m MWDD) DockerCompose() dockercompose.Project
- func (m MWDD) EnsureReady()
- func (m MWDD) Env() dotenv.File
- func (m MWDD) ExtensionsCheckedOut() []string
- func (m MWDD) LocalSettingsContents() string
- func (m MWDD) LocalSettingsPath() string
- func (m MWDD) RecordHostUsageBySite(host string)
- func (m MWDD) RemoveUsedHostsIfExists()
- func (m MWDD) SkinsCheckedOut() []string
- func (m MWDD) UsedHosts() []string
- type ServiceTexts
- type WherePathProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var Context string
Functions ¶
func CommandAndEnvFromArgs ¶
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 NewImageCmdP ¶ added in v0.22.0
func NewServiceCmd ¶
func NewServiceCmd(name string, texts ServiceTexts, aliases []string) *cobra.Command
func NewServiceCmdDifferingNames ¶ added in v0.13.0
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 NewServiceCommandCmdP ¶ added in v0.22.0
func NewServiceCreateCmd ¶
func NewServiceCreateCmdP ¶ added in v0.22.0
func NewServiceDestroyCmd ¶
func NewServiceDestroyCmdP ¶ added in v0.22.0
func NewServiceExecCmdP ¶ added in v0.22.0
func NewServiceExposeCmd ¶ added in v0.20.0
func NewServiceExposeCmdP ¶ added in v0.22.0
func NewServiceStartCmd ¶ added in v0.13.0
func NewServiceStartCmdP ¶ added in v0.22.0
func NewServiceStopCmd ¶ added in v0.13.0
func NewServiceStopCmdP ¶ added in v0.22.0
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 (MWDD) ComposerLocalJsonPath ¶ added in v0.20.0
func (MWDD) DockerCompose ¶ added in v0.22.0
func (m MWDD) DockerCompose() dockercompose.Project
func (MWDD) ExtensionsCheckedOut ¶ added in v0.20.0
func (MWDD) LocalSettingsContents ¶ added in v0.20.0
func (MWDD) LocalSettingsPath ¶ added in v0.20.0
func (MWDD) RecordHostUsageBySite ¶
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
type ServiceTexts ¶ added in v0.20.0
type WherePathProvider ¶
type WherePathProvider func() string
Click to show internal directories.
Click to hide internal directories.