| 1 | # WSLC-Neofetch |
| 2 | |
| 3 | A minimal sample that uses the [WSL Container API](https://aka.ms/wslc) to run the |
| 4 | Linux `neofetch` command from a native Windows executable. Running `neofetch.exe` |
| 5 | starts a lightweight WSL container, runs `neofetch` inside it, and streams the |
| 6 | output back to your terminal. Command-line arguments are forwarded, so |
| 7 | `neofetch.exe --help` works just like `neofetch --help` on Linux. |
| 8 | |
| 9 | ## Build |
| 10 | |
| 11 | Open `WSLCNeofetch.sln` in Visual Studio and build (x64), or from a developer |
| 12 | command prompt: |
| 13 | |
| 14 | ``` |
| 15 | nuget restore WSLCNeofetch.sln |
| 16 | msbuild WSLCNeofetch.sln /p:Configuration=Debug /p:Platform=x64 |
| 17 | ``` |
| 18 | |
| 19 | ## Run |
| 20 | |
| 21 | ``` |
| 22 | x64\Debug\neofetch.exe # show system info |
| 23 | x64\Debug\neofetch.exe --help # forwarded to neofetch |
| 24 | ``` |
| 25 | |
| 26 | Progress messages (`[wslc] ...`) are written to stderr, so piping stdout is safe. |