Documentation ¶
Index ¶
- type PluginInfo
- type Site
- func (s *Site) EnsureDocker(consoleOutput *console.Console) error
- func (s *Site) ExportDatabase(args []string, consoleOutput *console.Console) (string, error)
- func (s *Site) ExportSiteConfig(consoleOutput *console.Console) error
- func (s *Site) GetSiteList(appDir string, checkRunningStatus bool, consoleOutput *console.Console) ([]SiteInfo, error)
- func (s *Site) ImportDatabase(file string, preserve bool, replaceDomain string, ...) error
- func (s *Site) IsSiteRunning() bool
- func (s *Site) IsXdebugRunning(consoleOutput *console.Console) bool
- func (s *Site) LoadSite(cmd *cobra.Command, commandsRequiringSite []string, ...) error
- func (s *Site) OpenSite(openDatabaseFlag, openMailpitFlag, openSiteFlag bool, ...) error
- func (s *Site) RunWPCli(command []string, consoleOutput *console.Console) (statusCode int64, output string, err error)
- func (s *Site) StartSite(consoleOutput *console.Console) error
- func (s *Site) StartXdebug(consoleOutput *console.Console) error
- func (s *Site) StopSite() error
- func (s *Site) StopXdebug(consoleOutput *console.Console) error
- type SiteInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginInfo ¶
type Site ¶
func (*Site) EnsureDocker ¶
EnsureDocker Ensures Docker is available for commands that need it.
func (*Site) ExportDatabase ¶
func (*Site) ExportSiteConfig ¶
ExportSiteSConfig Saves the current running config to a file.
func (*Site) GetSiteList ¶
func (s *Site) GetSiteList(appDir string, checkRunningStatus bool, consoleOutput *console.Console) ([]SiteInfo, error)
GetSiteList Returns a list of all Kana sites, their location and whether they're running.
func (*Site) ImportDatabase ¶
func (*Site) IsSiteRunning ¶
IsSiteRunning Returns true if the site is up and running in Docker or false. Does not verify other errors.
func (*Site) IsXdebugRunning ¶
IsXdebugRunning returns true if Xdebug is already running or false if not.
func (*Site) OpenSite ¶
func (s *Site) OpenSite(openDatabaseFlag, openMailpitFlag, openSiteFlag bool, consoleOutput *console.Console) error
OpenSite Opens the current site in a browser if it is running.
func (*Site) RunWPCli ¶
func (s *Site) RunWPCli(command []string, consoleOutput *console.Console) (statusCode int64, output string, err error)
RunWPCli Runs a wp-cli command returning it's output and any errors.
func (*Site) StartXdebug ¶
StartXdebug installs and starts xdebug in the site's PHP container.
Click to show internal directories.
Click to hide internal directories.