Documentation
¶
Index ¶
- Variables
- func NewArtisanCmd() *cobra.Command
- func NewAutostartCmd() *cobra.Command
- func NewDbCmd() *cobra.Command
- func NewDbCreateCmd() *cobra.Command
- func NewDbExportCmd() *cobra.Command
- func NewDbImportCmd() *cobra.Command
- func NewDbShellCmd() *cobra.Command
- func NewEnvCmd() *cobra.Command
- func NewFetchCmd() *cobra.Command
- func NewInstallCmd() *cobra.Command
- func NewIsolateCmd() *cobra.Command
- func NewIsolateNodeCmd() *cobra.Command
- func NewLinkCmd() *cobra.Command
- func NewLogsCmd() *cobra.Command
- func NewMCPCmd() *cobra.Command
- func NewMCPInjectCmd() *cobra.Command
- func NewNodeCmd() *cobra.Command
- func NewNpmCmd() *cobra.Command
- func NewNpxCmd() *cobra.Command
- func NewOpenCmd() *cobra.Command
- func NewParkCmd() *cobra.Command
- func NewPhpCmd() *cobra.Command
- func NewPhpExtCmd() *cobra.Command
- func NewPhpIniCmd() *cobra.Command
- func NewPhpListCmd() *cobra.Command
- func NewPhpRebuildCmd() *cobra.Command
- func NewQueueCmd() *cobra.Command
- func NewQueueStartCmd() *cobra.Command
- func NewQueueStopCmd() *cobra.Command
- func NewSecureCmd() *cobra.Command
- func NewServiceCmd() *cobra.Command
- func NewSetupCmd() *cobra.Command
- func NewShareCmd() *cobra.Command
- func NewSitesCmd() *cobra.Command
- func NewStartCmd() *cobra.Command
- func NewStatusCmd() *cobra.Command
- func NewStopCmd() *cobra.Command
- func NewTrayCmd() *cobra.Command
- func NewUninstallCmd() *cobra.Command
- func NewUnlinkCmd() *cobra.Command
- func NewUnparkCmd() *cobra.Command
- func NewUnsecureCmd() *cobra.Command
- func NewUpdateCmd(currentVersion string) *cobra.Command
- func NewUseCmd() *cobra.Command
- func NewXdebugCmd() *cobra.Command
- func QueueStartForSite(siteName, sitePath, phpVersion string) error
- func QueueStopForSite(siteName string) error
- func RegisterProject(projectDir string, cfg *config.GlobalConfig) (bool, error)
- func RunParallel(jobs []BuildJob) error
- func UnlinkSite(name string) error
- type BuildJob
- type StepRunner
Constants ¶
This section is empty.
Variables ¶
var SupportedPHPVersions = []string{"8.1", "8.2", "8.3", "8.4", "8.5"}
SupportedPHPVersions lists the PHP versions lerd can build FPM images for.
Functions ¶
func NewArtisanCmd ¶ added in v0.1.16
NewArtisanCmd returns the artisan command — runs php artisan in the project's container.
func NewAutostartCmd ¶ added in v0.3.0
NewAutostartCmd returns the autostart command with enable/disable subcommands.
func NewDbCmd ¶ added in v0.4.0
NewDbCmd returns the db parent command with import/export/create/shell subcommands.
func NewDbCreateCmd ¶ added in v0.5.1
NewDbCreateCmd returns the standalone db:create command.
func NewDbExportCmd ¶ added in v0.4.0
NewDbExportCmd returns the standalone db:export command.
func NewDbImportCmd ¶ added in v0.4.0
NewDbImportCmd returns the standalone db:import command.
func NewDbShellCmd ¶ added in v0.5.1
NewDbShellCmd returns the standalone db:shell command.
func NewFetchCmd ¶ added in v0.4.0
NewFetchCmd returns the fetch command.
func NewIsolateNodeCmd ¶
NewIsolateNodeCmd returns the isolate:node command.
func NewLogsCmd ¶ added in v0.1.17
NewLogsCmd returns the logs command.
func NewMCPCmd ¶ added in v0.3.0
NewMCPCmd returns the mcp command — starts the MCP server over stdio.
func NewMCPInjectCmd ¶ added in v0.3.0
NewMCPInjectCmd returns the mcp:inject command.
func NewNodeCmd ¶ added in v0.1.16
NewNodeCmd returns the node command.
func NewOpenCmd ¶ added in v0.3.0
NewOpenCmd returns the open command.
func NewPhpCmd ¶ added in v0.1.16
NewPhpCmd returns the php command — runs PHP in the appropriate FPM container.
func NewPhpExtCmd ¶ added in v0.5.5
NewPhpExtCmd returns the php:ext parent command.
func NewPhpIniCmd ¶ added in v0.5.5
NewPhpIniCmd returns the php:ini command.
func NewPhpListCmd ¶
NewPhpListCmd returns the php:list command.
func NewPhpRebuildCmd ¶ added in v0.1.17
NewPhpRebuildCmd returns the php:rebuild command.
func NewQueueCmd ¶ added in v0.3.0
NewQueueCmd returns the queue parent command with start/stop subcommands.
func NewQueueStartCmd ¶ added in v0.3.0
NewQueueStartCmd returns the standalone queue:start command.
func NewQueueStopCmd ¶ added in v0.3.0
NewQueueStopCmd returns the standalone queue:stop command.
func NewServiceCmd ¶
NewServiceCmd returns the service command with subcommands.
func NewSetupCmd ¶ added in v0.4.0
NewSetupCmd returns the setup command.
func NewShareCmd ¶ added in v0.4.0
NewShareCmd returns the share command.
func NewStartCmd ¶ added in v0.1.11
NewStartCmd returns the start command.
func NewStopCmd ¶ added in v0.1.11
NewStopCmd returns the stop command.
func NewTrayCmd ¶ added in v0.5.0
NewTrayCmd returns the tray command.
func NewUninstallCmd ¶
NewUninstallCmd returns the uninstall command.
func NewUnparkCmd ¶ added in v0.1.9
NewUnparkCmd returns the unpark command.
func NewUnsecureCmd ¶ added in v0.3.0
NewUnsecureCmd returns the unsecure command.
func NewUpdateCmd ¶
NewUpdateCmd returns the update command.
func NewXdebugCmd ¶ added in v0.4.0
NewXdebugCmd returns the xdebug parent command with on/off/status subcommands.
func QueueStartForSite ¶ added in v0.3.0
QueueStartForSite starts a queue worker for the given site with default settings.
func QueueStopForSite ¶ added in v0.3.0
QueueStopForSite stops and removes the queue worker for the named site.
func RegisterProject ¶ added in v0.3.0
func RegisterProject(projectDir string, cfg *config.GlobalConfig) (bool, error)
RegisterProject registers a single project directory as a lerd site if it is a Laravel project and not already registered. Returns true if newly registered.
func RunParallel ¶ added in v0.5.6
RunParallel executes all jobs concurrently with a compact spinner UI. In a non-TTY environment it falls back to plain sequential output. Returns the first non-nil error, or nil if all jobs succeed.
func UnlinkSite ¶ added in v0.3.0
UnlinkSite removes the nginx vhost for the named site. For sites under a parked directory, the registry entry is kept but marked Ignored so the watcher does not re-register it. For manually-linked sites the entry is removed entirely.
Types ¶
type BuildJob ¶ added in v0.5.6
BuildJob is a labeled build task that writes its output to the provided writer.
type StepRunner ¶ added in v0.5.6
type StepRunner struct {
// contains filtered or unexported fields
}
StepRunner runs labeled steps sequentially with a compact in-place TUI. Each step's output is hidden by default; press Ctrl+O to toggle it. Falls back to plain " --> label ... OK" output when stdout is not a TTY.
func NewStepRunner ¶ added in v0.5.6
func NewStepRunner() *StepRunner
NewStepRunner creates and starts a StepRunner. Call Close() when all steps are done to restore the terminal.
func (*StepRunner) Close ¶ added in v0.5.6
func (r *StepRunner) Close()
Close stops the render loop, restores the terminal, and prints a final newline.
func (*StepRunner) Run ¶ added in v0.5.6
Run executes fn as a labeled step. In TUI mode the step shows a spinner while running and ✓/✗ when done. Returns fn's error.
func (*StepRunner) RunInteractive ¶ added in v0.5.6
func (r *StepRunner) RunInteractive(label string, fn func() error) error
RunInteractive temporarily restores the terminal to cooked mode so that steps which need interactive sudo (password prompts, etc.) work correctly. The spinner pauses, the step runs with full terminal access, then raw mode resumes.
Source Files
¶
- artisan.go
- autostart.go
- build_ui.go
- db.go
- env.go
- fetch.go
- install.go
- isolate.go
- isolate_node.go
- link.go
- logs.go
- mcp.go
- node_exec.go
- open.go
- park.go
- php_exec.go
- php_ext.go
- php_ini.go
- php_list.go
- php_rebuild.go
- queue.go
- secure.go
- services.go
- setup.go
- share.go
- sites.go
- startstop.go
- status.go
- tray.go
- uninstall.go
- unlink.go
- unpark.go
- update.go
- use.go
- xdebug.go