feat: add @ prefix to suppress command echoing (Issue #6)#40
Merged
seanseannery merged 1 commit intomainfrom Mar 9, 2026
Merged
feat: add @ prefix to suppress command echoing (Issue #6)#40seanseannery merged 1 commit intomainfrom
seanseannery merged 1 commit intomainfrom
Conversation
Add Makefile-style @ prefix support for Opsfile command lines. Commands are now echoed to stderr before execution by default. Prefixing a line with @ suppresses echoing for that line. --silent suppresses all echoing.
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.
Key Changes
@prefix support: prefixing an Opsfile command line with@suppresses echoing for that line--silentflag suppresses all echoing globally--dry-runprints all resolved lines with@stripped (unaffected by prefix)ResolvedLinestruct carries per-lineSilentmetadata through the pipelineExecute()now accepts anio.Writerfor echo output (testable, passesos.Stderrin production)Why do we need this?
Users have no visibility into which shell lines are being run. This matches Make's behavior where commands are echoed before execution, and
@prefix provides granular suppression for cleaner output. Closes #6.New modules or other dependencies introduced
None
How was this tested?
@stripping, variable substitution with@, backslash/indent continuation, double@@, bare@,@in middle of line,@in variable values, and regression checksmake lintcleandocs/feature-at-prefix-suppress.mddocs/testplans/testplan-at-prefix-suppress.md