A blazingly fast CLOC(Count Lines Of Code) program, written in Rust.
The canonical source of this repo is hosted on GitHub. If you have a GitHub account, please make your issues, and pull requests there.
If you have cargo 0.6.0>=
installed just run the cargo install
command.
shell
$ cargo install tokei
Install rust and cargo from either the official page or use a copr repo such as Rust
shell
$ dnf copr enable phnxrbrn/tokei
$ dnf install tokei
shell
$ git clone https://github.com/Aaronepower/tokei.git
$ cd tokei
$ cargo build --release
```
```
```
```
env
PATH
<path_stuff_here>;C:/tokei/;
To use tokei, use must add it to your path. Then you can call tokei like so
shell
$ tokei ./path/to/code
``` Tokei 2.1.1 Aaron P. theaaronepower@gmail.com Count Code, Quickly.
USAGE: Tokei [FLAGS] [OPTIONS] ...
FLAGS: -f, --files Will print out statistics on individual files. -h, --help Prints help information -l, --languages Prints out supported languages and their extensions -V, --version Prints version information
OPTIONS:
-e, --exclude
ARGS: ... The input file(s)/directory(ies) ```
If there is a language that you want added submit a pull request with the following information
ActionScript
Assembly
BASH
Batch
C
C Header
Clojure
CoffeeScript
ColdFusion
ColdFusion CFScript
Coq
C++
C++ Header
C#
C Shell
CSS
D
Dart
Device Tree
Erlang
FORTRAN Legacy
FORTRAN Modern
Go
Haskell
HTML
Idris
JAI
Java
JavaScript
Julia
JSON
JSX
Kotlin
LESS
LD Script
LISP
Lua
Makefile
Markdown
Mustache
Nim
Objective C
Objective C++
OCaml
Oz
Pascal
Perl
Polly
PHP
Protocol Buffers
Prolog
Python
QCL
R
Ruby
Ruby HTML
Rust
Sass
Standard ML
SQL
Swift
TeX
Plain Text
TOML
TypeScript
Vim Script
Unreal Script
Wolfram
XML
YAML
Zsh
This is likely due to gcc
generating .d
files. Until the D people decide on a different file extension, you can always exclude .d
files using the -e --exclude
flag like so
$ tokei . -e .d
(C) Copyright 2015 by Aaron Power and contributors
See CONTRIBUTORS.md for a full list of contributors.
Tokei is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENCE-APACHE, LICENCE-MIT for more information.