Skip to content

Commit be48e2a

Browse files
authored
Add example of creating public URL (#515)
1 parent 2b9e2a5 commit be48e2a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,14 @@ Note that you don't have to specify the directory you want to run against. Runni
329329

330330
You can also run against multiple files or directories `scc directory1 directory2 file1 file2` with the results aggregated in the output.
331331

332+
Since `scc` writes to standard output, there are many ways to easily share the results. For example, using [netcat](https://manpages.org/nc)
333+
and [one of many pastebins](https://paste.c-net.org/) gives a public URL:
334+
335+
```
336+
$ scc | nc paste.c-net.org 9999
337+
https://paste.c-net.org/Example
338+
```
339+
332340
### Ignore Files
333341

334342
`scc` mostly supports .ignore files inside directories that it scans. This is similar to how ripgrep, ag and tokei work. .ignore files are 100% the same as .gitignore files with the same syntax, and as such `scc` will ignore files and directories listed in them. You can add .ignore files to ignore things like vendored dependency checked in files and such. The idea is allowing you to add a file or folder to git and have ignored in the count.

0 commit comments

Comments
 (0)