feat: add headless dev mode, start/stop subcommands, and project logs#944
Merged
Soner (shyim) merged 1 commit intonextfrom Apr 1, 2026
Merged
feat: add headless dev mode, start/stop subcommands, and project logs#944Soner (shyim) merged 1 commit intonextfrom
Soner (shyim) merged 1 commit intonextfrom
Conversation
Restructure `project dev` to support non-interactive usage: - `project dev` auto-detects TTY: launches TUI in terminal, starts containers in background otherwise (for AI agents and CI) - `project dev start` explicitly starts in background with spinner, elapsed time, shop/admin URLs, and discovered service URLs - `project dev stop` stops the environment with spinner and timing Add `project logs` command for reading Shopware application logs: - Reads from var/log/, defaults to most recently modified .log file - `--list` / `-l` lists available log files with size and modification time - `--lines` controls number of lines (default 100) - `--follow` / `-f` tails the log file Executor interface changes: - Add `StartEnvironment` and `StopEnvironment` methods - Add `TypeDocker`, `TypeLocal`, `TypeSymfonyCLI` constants - Docker executor captures compose output, only shows on failure - Local and Symfony CLI executors return `ErrNotSupported` Extract `DiscoverServices` as a public function in devtui for reuse.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
project devto auto-detect TTY: launches TUI in terminals, starts containers in background for AI agents and CIproject dev start/project dev stopsubcommands with spinner, timing, and URL outputproject logscommand to read Shopware application logs fromvar/log/StartEnvironment/StopEnvironmentto executor interface with type constantsNew Commands
project devproject dev startproject dev stopproject logsproject logs --listproject logs --followproject logs --lines 50Test plan
project devin a terminal opens the TUI as beforeproject devpiped or in non-TTY runs headless (starts containers, prints URLs)project dev startstarts containers with spinner and timing outputproject dev stopstops containers with spinner and timing outputproject logs --listlists log files fromvar/log/project logsshows last 100 lines of most recent log fileproject logs --followtails the log filegolangci-lint run ./...passes with 0 issuesgo test ./...passes