docs(te-cli): document interactive piped/non-interactive stdin, comments, and --no-banner/--echo/--batch/--no-batch#355
Open
MariaJoseFF wants to merge 1 commit into
Conversation
Document the Milestone 2 features for driving the interactive REPL from piped or redirected stdin, which exist in te interactive --help but were absent from the docs: - Piped/redirected stdin runs each line as a command (bash, cmd.exe, < file) - Lines starting with # are comments and skipped - --batch is the default when stdin is piped (stop + exit non-zero on first failure); --no-batch continues past errors - --echo echoes each input line for readable transcripts - Clarify --no-banner (welcome banner) vs. the stderr preview-expiry notice suppressed via te config set hidePreviewNotice true Verified against te.exe 0.5.2.12402. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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
The interactive REPL (
te interactive) gained piped / non-interactive input handling in Milestone 2. These features appear inte interactive --helpbut were undocumented. This PR documents them on the Interactive Mode page.Targets the
cli/pupr-milestone2-releasebranch (Milestone 2 / Public Preview docs collection), notmain.What was added
A new Piped and redirected input section on
content/features/te-cli/te-cli-interactive.md, covering:< script.teforms).#are treated as comments and skipped.--batchis the default when stdin is piped (stops at the first failing command and exits non-zero);--no-batchcontinues past errors. Exit code is0on a clean run, non-zero on failure under batch mode.--echoechoes each input line to stdout for readable transcripts (comment lines are not echoed).--no-banner,--echo,--batch,--no-batch(descriptions verbatim from--help).--no-bannersuppresses only the interactive welcome banner (no effect when piped, since no banner is emitted), while the separate preview-expiry notice is written to stderr and suppressed viate config set hidePreviewNotice true.Verification
All documented examples and behaviors were sanity-checked against
te.exe 0.5.2.12402, including the cmd.exe pipe form and the batch-mode exit codes.Notes
localizedContent/esand/zhcopies are intentionally untouched (translations handled separately).updated:date.