Skip to content
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

Use here-doc for stdin if both stdin and arguments are used #485

Merged
merged 2 commits into from
Dec 20, 2023

Conversation

niknetniko
Copy link
Member

Currently, we just add the stdin below the command that is executed, which is not clear at all. We now use here-doc to display stdin in that case.

If only stdin is used, nothing changes: only stdin is shown.

It looks like this:
image

The colouring is sometimes a bit wonky, both Rouge and Pygments are not that good at highlighting here-docs.

Fixes #484.

@pdawyndt
Copy link
Contributor

Colouring wasn't reliable either in the current representation (text highlighted as if it were a shell command), so that's no reason not to make the change. Indeed looks like an improvement to me.

@niknetniko niknetniko merged commit 6a7a1a7 into master Dec 20, 2023
7 checks passed
@niknetniko niknetniko deleted the enhance/heredoc-stdin branch December 20, 2023 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show stdin as a separate channel when used in combination with arguments
2 participants