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

Remove warning when using --preview on stdin input #259

Merged

Conversation

CosmicHorrorDev
Copy link
Collaborator

This reverts #239

I agreed with the motivation from the original PR, but I have since changed my mind. Currently using --preview when dealing with input from stdin is identical to not passing --preview, hence the idea behind the warning.

The reason that I changed my mind is that I now view those two matching to be just a coincidence. The output of --preview is likely to change in the future to be more human friendly while not passing --preview should always pass the full expected output so it can be piped to other programs, files, etc. Because this is likely to change in the future I don"t think we should dissuade users from passing --preview while dealing with stdin input

@CosmicHorrorDev CosmicHorrorDev merged commit 1ac5fbc into chmln:master Oct 31, 2023
@dev-ardi
Copy link
Contributor

dev-ardi commented Oct 31, 2023

In this case we should change the docs on the preview flag to something more descriptive. Right now it is

    /// Output result into stdout and do not modify files.
    pub preview: bool,

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.

2 participants