From 0642c845628073c601f98148a15f8e2ed6baf8a1 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 1 Dec 2018 19:02:56 +0100 Subject: [PATCH] tokei: add page (#2545) --- pages/common/tokei.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/tokei.md diff --git a/pages/common/tokei.md b/pages/common/tokei.md new file mode 100644 index 0000000000..2090b2d863 --- /dev/null +++ b/pages/common/tokei.md @@ -0,0 +1,19 @@ +# tokei + +> A program that prints out statistics about code. + +- Get a report on the code in a folder and all subfolders: + +`tokei {{path/to/folder}}` + +- Get a report for a folder excluding `.min.js` files: + +`tokei {{path/to/folder}} -e {{*.min.js}}` + +- Print out statistics for individual files in a folder: + +`tokei {{path/to/folder}} --files` + +- Get a report for all files of type Rust and Markdown: + +`tokei {{path/to/folder}} -t={{Rust}},{{Markdown}}`