Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Add Convert-LineEnding command #17

Open
rkeithhill opened this issue Nov 25, 2020 · 1 comment
Open

Add Convert-LineEnding command #17

rkeithhill opened this issue Nov 25, 2020 · 1 comment
Milestone

Comments

@rkeithhill
Copy link

This would be like dos2unix and unix2dos. Running gci *.cpp | Convert-LineEnding with no "switch" parameter should convert line endings to match the current platform. I would expect -Windows and -Unix (or -Linux) mutually exclusive switches to force a specific line-ending independent of the current platform. Not sure if it would be worth adding -macOS switch (for \r line endings) since I "think" that is old, old macs and probably not relevant anymore.

@BarabasGitHub
Copy link

Can I nudge this issue? I just searched half the web for a decent solution and they're all kinda bad in their own way. Having something for this OOTB would be great.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants