Documentation
¶
Overview ¶
Package xfcmd provides high-level commands for managing XenForo installations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(xfDir string, opts InitOptions) (written []string, err error)
Init initializes the Docker environment in a XenForo directory. It returns the paths of any ".default" files written alongside existing, user-modified files so callers can notify the user.
func RunComposer ¶ added in v0.3.0
func RunComposer(ctx context.Context, xfDir string, stdin io.Reader, stdout, stderr io.Writer, args ...string) error
RunComposer runs Composer in the XenForo environment at xfDir, using exec for a running service or run for a stopped service. If no environment is configured, it runs Composer on the host in xfDir. Environment failures do not fall back to the host. Output writers must be non-nil.
Types ¶
type InitOptions ¶
InitOptions contains options for initializing a Docker environment.
Click to show internal directories.
Click to hide internal directories.