A .NET command-line tool for counting files and lines of code in a directory. This tool recursively scans directories, counts all files, and calculates the total number of lines in each file, presenting the results in a formatted table.
Tip
The .git directory is automatically excluded from scanning.
| Short | Long | Description | Default |
|---|---|---|---|
| --path | Directory to scan for files (required) | ||
| -h | --help | Renders help metadata |
Run the tool directly without installation using dnx:
dnx SeeSharpRun.FileCounter --path "<directory>"Install the tool globally on your machine:
dotnet tool install --global SeeSharpRun.FileCounterAfter installation, run using dotnet tool run:
dotnet tool run SeeSharpRun.FileCounter --path "<directory>"Or use the shorter command alias:
filecounter --path "<directory>"For development and testing, run directly from source:
dotnet run --project src/tool/SeeSharpRun.FileCounter.Tool.csproj -- --path "<directory>"