Skip to content

.NET CLI tool that counts the number of files in a directory and generates a table with output for the number of files and number of lines per file.

License

Notifications You must be signed in to change notification settings

seesharprun/file-counter-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Counter

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.

Arguments

Short Long Description Default
--path Directory to scan for files (required)
-h --help Renders help metadata

Prerequisites

Dynamically run package

Run the tool directly without installation using dnx:

dnx SeeSharpRun.FileCounter --path "<directory>"

Install package

Install the tool globally on your machine:

dotnet tool install --global SeeSharpRun.FileCounter

After installation, run using dotnet tool run:

dotnet tool run SeeSharpRun.FileCounter --path "<directory>"

Or use the shorter command alias:

filecounter --path "<directory>"

Run in dev

For development and testing, run directly from source:

dotnet run --project src/tool/SeeSharpRun.FileCounter.Tool.csproj -- --path "<directory>"

About

.NET CLI tool that counts the number of files in a directory and generates a table with output for the number of files and number of lines per file.

Topics

Resources

License

Stars

Watchers

Forks

Languages