Giter VIP home page Giter VIP logo

lines's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.