sl count-lines
The sl count-lines
command allows you to count the lines of code in a given
directory. This information can help you determine if the workstation you're
running preZero on can support code analysis.
The command will try to exclude directories that do not contain your application code directly (e.g.,
node_modules
for Node.js orvendor
for Go).
Usage
To run: sl count-lines [command options] <path-to-directory>
Command options
Option | Description |
---|---|
--js | Use to indicate the project is a JavaScript application |
--csharp | Use to indicate the project is a C# application |
--go | Use to indicate the project is a Go application |
--java | Use to indicate the project is a Java/Scala application |
--kotlin | Use to indicate the project is a Kotlin application |
--php | Use to indicate the project is a PHP application |
--python | Use to indicate the project is a Python application |
--ruby | Use to indicate the project is a Ruby application |
Sample usage
$ sl count-lines --js sample-apps/sl-angular
552 lines for 28 JavaScript files in sample-apps/sl-angular