xfcmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 12 Imported by: 0

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

type InitOptions struct {
	OverwriteExisting bool
	Contexts          []string
}

InitOptions contains options for initializing a Docker environment.

Jump to

Keyboard shortcuts

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