-
Notifications
You must be signed in to change notification settings - Fork 815
bicep console: Support piping and stdin/out redirection
#18762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Test this change out locally with the following install scripts (Action run 20941660410) VSCode
Azure CLI
|
554c326 to
73ee3d4
Compare
bicep console: Support piping inputbicep console: Support stdin redirection
73ee3d4 to
c838f18
Compare
bicep console: Support stdin redirectionbicep console: Support piping and stdin redirection
49fd7c3 to
46ce8b6
Compare
|
|
||
| if (io.Input.IsRedirected) | ||
| { | ||
| // Read all input from stdin if redirected (via pipe or file redirection) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we always disable ANSI color mode for output if output is being redirected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
46ce8b6 to
9ab0d98
Compare
bicep console: Support piping and stdin redirectionbicep console: Support piping and stdin/out redirection
9ab0d98 to
fd8528d
Compare
fd8528d to
1d1f8a5
Compare

Description
For #18410. Enables piping and stdin/out redirection into the
bicep console(i.e. piping|or file redirection<& output redirection '>`).Example Usage
Powershell:
Piping:
Bash:
Piping:
Std-in redirection from file:
Multi-line support:
Output redirection:
Checklist
Microsoft Reviewers: Open in CodeFlow