Skip to content

CLI tool to count how many lines of code in your project

Notifications You must be signed in to change notification settings

Stepashka20/lines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lines

This is a simple command-line tool that counts the number of lines of code in a project. It uses the cobra library to provide a user-friendly interface and allows you to specify which files to ignore while counting.

🖥 Usage

To use the line counter, you will need to have Go installed on your system. Once you have Go installed, you can run the following command to download the package:

git clone https://github.com/Stepashka20/lines
go install

Next, you can navigate to the root of any of your projects in the terminal and run the following command:

lines

By default, the tool will start counting lines from the current directory and all its subdirectories. You can also specify specific directories that do not need to be scanned.

lines --exclude=file1,file2,file3

🚩 Flags

Short command Long command Description
--info -i Display information about each file while scanning. This is additional information that shows the scanned file and the number of lines in it
--exclude -e Specify files to exclude from the line count. Files should be separated by a comma

ℹ Example:

lines

image

lines -i

image

lines -i -e themes.zip

image

👥 Contribute

If you find any bugs or have any suggestions for improvements, please feel free to open an issue or a pull request on the GitHub repository.

📄 License

This project is licensed under the MIT License.

About

CLI tool to count how many lines of code in your project

Topics

Resources

Stars

Watchers

Forks

Languages