From 657d915dc11abe93a254aeedc270cdd6b72d6a9e Mon Sep 17 00:00:00 2001 From: Ivan Aracki Date: Wed, 24 Oct 2018 21:04:34 +0200 Subject: [PATCH] loc: add page (#2470) --- pages/common/loc.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/loc.md diff --git a/pages/common/loc.md b/pages/common/loc.md new file mode 100644 index 000000000..e3f1bccd8 --- /dev/null +++ b/pages/common/loc.md @@ -0,0 +1,19 @@ +# loc + +> Tool written in Rust that counts lines of code. + +- Print lines of code in the current directory: + +`loc` + +- Print lines of code in the target directory: + +`loc {{path/to/directory}}` + +- Print lines of code with stats for individual files: + +`loc --files` + +- Print lines of code without .gitignore (etc.) files (e.g. two -u flags will additionally count hidden files and dirs): + +`loc -u`