Versions in this module Expand all Collapse all v1 v1.0.1 Oct 18, 2023 v1.0.0 Oct 18, 2023 Changes in this version + const SELECT_SITE_URL_STMT + var ErrCannotBuildOperations = errors.New("cannot build operations") + var ErrCannotCreateClient = errors.New("cannot create client") + var ErrCannotCreateZipFile = errors.New("cannot create zip file") + var ErrCannotDetermineSiteInfo = errors.New("cannot determine site info") + var ErrCannotParseWPConfig = errors.New("error parsing wp-config.php file") + var ErrCannotRunOperations = errors.New("cannot run operations") + var ErrNoOperations = errors.New("no operations to run") + type Builder struct + func (b *Builder) Build(info SiteInfo) ([]operations.Operation, error) + type OperationsBuilder interface + Build func(info SiteInfo) ([]operations.Operation, error) + type OperationsRunner interface + Run func(operations []operations.Operation, writer io.Writer) error + type Packager struct + func NewPackager(sshCredentials sftp.SSHCredentials, siteUrl types.SiteUrl, ...) (*Packager, error) + func (p *Packager) PackageWP(outputFilename string) error + type Prompter interface + Prompt func(question string) string + type Runner struct + func (r *Runner) Run(ops []operations.Operation, writer io.Writer) error + type RuntimePrompter struct + func (p *RuntimePrompter) Prompt(question string) string + func (p *RuntimePrompter) PromptForPassword(question string) string + type SiteInfo struct + func DetermineSiteInfo(siteUrl types.SiteUrl, publicPath types.PublicPath, parser WPConfigParser, ...) (SiteInfo, error) + type WPConfigParser interface + ParseWPConfig func(publicPath types.PublicPath) (parser.WPConfigFields, error)