linecount

Version, currently master branch1 version
  • master branchlatestFeb 4, 2025

github.com/KMilkevych/linecount

A tool to count lines of code in your projects and display the information in a fancy way

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  linecount:
    github: KMilkevych/linecount
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
>= 1.11.2
License
MIT
Author
Kostiantyn Milkevych
Target
  • linecount from src/linecount.cr

Dependencies

This version declares no dependencies.

README

linecount

A tool to summarize the type and amount of code written inside directories and files.

Installation

Build linecount using:

crystal build src/linecount.cr

then run using:

./linecount [flags] [files/directories]

Usage

The tool can be executed as is, e.g. by running ./linecount which will summarize the current directory with recursive descent.

Files can be specified by passing their names as arguments to the call:

./linecount testfile.txt testdir1 testdir2

To specify a maximum recursion depth use the -d or --depth flag:

./linecount --depth 2 testdir

Using --depth 0 disables recursion and only examines the files in top-level.

Contributing

  1. Fork it (https://github.com/KMilkevych/linecount/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors