From 80a67a17aa40e2bfc809cce8d82b505e8053d751 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 5 May 2016 20:01:56 +0100 Subject: [PATCH 1/5] Add cloc Find out more about cloc here: https://github.com/AlDanial/cloc --- pages/common/cloc.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pages/common/cloc.md diff --git a/pages/common/cloc.md b/pages/common/cloc.md new file mode 100644 index 000000000..531faff67 --- /dev/null +++ b/pages/common/cloc.md @@ -0,0 +1,15 @@ +# cloc + +> Count, and compute differences of, lines of source code and comments. + +- Count all the lines of code in a directory: + +`cloc {{/path/to/base/directory}}` + +- Count all the lines of code in a directory, displaying a progress bar during the counting process: + +`cloc --progress 1 {{/path/to/base/directory}}` + +- Compare 2 directory sturctures and count the differences between them: + +`cloc --diff {{/path/to/dir/one}} {{/path/to/dir/two}}` From 88efafaf974a1d0a2e0f71ac459be9973ada01d9 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 6 May 2016 06:44:10 +0100 Subject: [PATCH 2/5] SImplify directory tokens. --- pages/common/cloc.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/cloc.md b/pages/common/cloc.md index 531faff67..27337ef03 100644 --- a/pages/common/cloc.md +++ b/pages/common/cloc.md @@ -4,12 +4,12 @@ - Count all the lines of code in a directory: -`cloc {{/path/to/base/directory}}` +`cloc {{directory}}` - Count all the lines of code in a directory, displaying a progress bar during the counting process: -`cloc --progress 1 {{/path/to/base/directory}}` +`cloc --progress 1 {{directory}}` - Compare 2 directory sturctures and count the differences between them: -`cloc --diff {{/path/to/dir/one}} {{/path/to/dir/two}}` +`cloc --diff {{directoryone}} {{directorytwo}}` From 28b087e980ff771f260c48681ce18f584dd68759 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 6 May 2016 09:57:18 +0100 Subject: [PATCH 3/5] Correct progress example. --- pages/common/cloc.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/cloc.md b/pages/common/cloc.md index 27337ef03..c241a56d3 100644 --- a/pages/common/cloc.md +++ b/pages/common/cloc.md @@ -8,7 +8,7 @@ - Count all the lines of code in a directory, displaying a progress bar during the counting process: -`cloc --progress 1 {{directory}}` +`cloc --progress=1 {{directory}}` - Compare 2 directory sturctures and count the differences between them: From 154d0db2a3c4e26447bafd53697e5c4f8b9389d7 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 6 May 2016 10:12:39 +0100 Subject: [PATCH 4/5] Fixed directory tokens. --- pages/common/cloc.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/cloc.md b/pages/common/cloc.md index c241a56d3..305c7eed3 100644 --- a/pages/common/cloc.md +++ b/pages/common/cloc.md @@ -4,12 +4,12 @@ - Count all the lines of code in a directory: -`cloc {{directory}}` +`cloc {{/path/to/directory}}` - Count all the lines of code in a directory, displaying a progress bar during the counting process: -`cloc --progress=1 {{directory}}` +`cloc --progress=1 {{/path/to/directory}}` - Compare 2 directory sturctures and count the differences between them: -`cloc --diff {{directoryone}} {{directorytwo}}` +`cloc --diff {{/path/to/directoryone}} {{/path/to/directorytwo}}` From fb3cf26a7d7c35e8a454bf853252edeacb9ac1b4 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 6 May 2016 10:41:00 +0100 Subject: [PATCH 5/5] Make directory paths even more clearerererer --- pages/common/cloc.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/cloc.md b/pages/common/cloc.md index 305c7eed3..f2c1335d9 100644 --- a/pages/common/cloc.md +++ b/pages/common/cloc.md @@ -12,4 +12,4 @@ - Compare 2 directory sturctures and count the differences between them: -`cloc --diff {{/path/to/directoryone}} {{/path/to/directorytwo}}` +`cloc --diff {{/directory/one}} {{/directory/two}}`