Created
December 27, 2023 07:27
-
-
Save Nikzed/e864c76acbc520ee07791fea5aafa351 to your computer and use it in GitHub Desktop.
How many lines does your Flutter project have for Windows PowerShell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$totalLines = 0 | |
Get-ChildItem -Recurse -Filter "*.dart" | Where-Object {!($_.Name -like "*.g.dart" -or $_.Name -like "*.freezed.dart" -or $_.Name -like "*.gr.dart" -or $_.Name -like "*.gen.dart")} | ForEach-Object { | |
$lineCount = (Get-Content $_.FullName | Measure-Object -Line).Lines | |
$totalLines += $lineCount | |
Write-Host "$($_.Name): $lineCount lines" | |
} | |
Write-Host "Total lines: $totalLines" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment