mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 21:07:40 +02:00
Update manuals in Docs/
This commit is contained in:
37
Docs/count-lines-of-code.md
Normal file
37
Docs/count-lines-of-code.md
Normal file
@ -0,0 +1,37 @@
|
||||
## count-lines-of-code.ps1 - Counts lines of code
|
||||
|
||||
This PowerShell script counts the number of code lines in a folder (including subfolders).
|
||||
|
||||
## Parameters
|
||||
```powershell
|
||||
count-lines-of-code.ps1 [[-Folder] <String>] [<CommonParameters>]
|
||||
|
||||
-Folder <String>
|
||||
Specifies the path to the folder
|
||||
|
||||
Required? false
|
||||
Position? 1
|
||||
Default value
|
||||
Accept pipeline input? false
|
||||
Accept wildcard characters? false
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||
```
|
||||
|
||||
## Example
|
||||
```powershell
|
||||
PS> ./count-lines-of-code .
|
||||
⏳ Counting lines at 📂C:\PowerShell\Scripts ...
|
||||
✔️ 📂Scripts contains 15287 lines of code in 485 files (took 1 sec)
|
||||
|
||||
```
|
||||
|
||||
## Notes
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
|
||||
## Related Links
|
||||
https://github.com/fleschutz/PowerShell
|
||||
|
||||
*Generated by convert-ps2md.ps1 using the comment-based help of count-lines-of-code.ps1*
|
Reference in New Issue
Block a user