Documentation
¶
Index ¶
- func CheckPrerequisites(ctx context.Context) error
- func ChooseBoardURL(instanceName, detectedURL string, detectedErr error) (string, bool)
- func Existing(ctx context.Context, opts *Options) error
- func InstallInvocation(user, email, title, siteURL, password string) ([]string, map[string]string)
- func InstanceTitle(title, instanceName string) string
- func PrintSkippedStep(current, total int, label, reason string)
- func PrintStartHint(dir string)
- func PrintUsefulCommands()
- func RunComposerInstall(ctx context.Context, runner *environment.Runner, root string, verbose bool) error
- func RunJavaScript(ctx context.Context, opts *Options, step, totalSteps int) error
- func ShouldRunComposer(targetPath string) bool
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPrerequisites ¶
func ChooseBoardURL ¶
func InstallInvocation ¶
InstallInvocation returns the sh arguments and environment that run xf:install.
func InstanceTitle ¶
InstanceTitle formats a site title with its instance name. An empty title defaults to "XenForo".
func PrintSkippedStep ¶
func PrintStartHint ¶
func PrintStartHint(dir string)
func PrintUsefulCommands ¶
func PrintUsefulCommands()
func RunComposerInstall ¶
func RunComposerInstall(ctx context.Context, runner *environment.Runner, root string, verbose bool) error
RunComposerInstall installs Composer dependencies inside the container: the root project's, then those of any add-on that still lacks them.
A failing add-on is reported but not fatal. Its dependencies only matter once the add-on is installed, and an add-on's manifest can stop resolving on its own, such as when Composer starts blocking a pinned version with a security advisory. Failing here would make every new environment unusable.
func RunJavaScript ¶
RunJavaScript builds only JavaScript, never release tasks or configured commands. Add-on failures warn and continue; core failures and cancellation stop setup. Both init modes call this before any container startup.
func ShouldRunComposer ¶
ShouldRunComposer reports whether a directory is a Composer project.
Repository checkouts track composer.json, so a fresh worktree has one and its dependencies must be installed. Release packages ship vendor/ prebuilt and have no manifest, so they are skipped automatically.