Files
winget-pkgs/Tools
b4d5b4fa48 Unofficial Linux Support for YamlCreate (#79847)
* gh and git fix

* Temprary temp fix

* Rewrite Join-Paths

* Git version regex fix

* More Join-Path fixes

* YamlCreate 2.1.6 Patch

* git add fix

* git add fix v2

* git add fix v3

* Switch to WSL compatible Get-Command and Fix git add

* Add folder on deletions

* Check for winget command to ensure validation on PR

* Unix ProductCode support

* Linting

* Remove all trailing whitespace
* Fixes an issue where adding in commented keys left whitespace after the key
  * Root Cause: Incorrect regex used when replacing (.*)$([char]0x2370)
  * Potential fix considered: Use (.*)\s$([char]0x2370) instead; This was avoided in case there were ever a situation where the char is not preceded by a space
  * Implemented fix: Instead of reading the file as a single raw string, read in each line individually.
    * Implemented new RightTrimString method to preserve leading whitespace, as YAML requires it
    * Skip last line of file, since we just wrote the file it is guaranteed to end in an empty newline

Co-authored-by: Esco <OfficialEsco@users.noreply.github.com>
Co-authored-by: wingetbot <63816999+wingetbot@users.noreply.github.com>
2022-09-19 07:08:43 -07:00
..