mirror of
https://github.com/silverqx/TinyORM.git
synced 2025-12-21 10:29:36 -06:00
23 lines
824 B
PowerShell
23 lines
824 B
PowerShell
#!/usr/bin/env pwsh
|
|
|
|
Param(
|
|
[Parameter(Position = 0, Mandatory,
|
|
HelpMessage = 'Specifies todo tasks to find on each line. The pattern value is used ' +
|
|
'in regular expression.')]
|
|
[ValidateNotNullOrEmpty()]
|
|
[string] $Pattern,
|
|
|
|
[Parameter(Position = 1, HelpMessage = 'Todo keywords regex pattern.')]
|
|
[ValidateNotNullOrEmpty()]
|
|
[string] $TodoKeywordsPattern = ' (TODO|NOTE|FIXME|BUG|WARNING|CUR|FEATURE|TEST|FUTURE|CUR1|TMP|SEC) ',
|
|
|
|
[Parameter(HelpMessage = 'Specifies subfolders to search. The pattern value is used ' +
|
|
'in regular expression, eg. (drivers|examples|include|src|tests|tom).')]
|
|
[AllowEmptyString()]
|
|
[string] $InSubFoldersPattern = '(drivers|examples|include|src|tests|tom)'
|
|
)
|
|
|
|
Set-StrictMode -Version 3.0
|
|
|
|
Find-TinyORMTodos.ps1 @PSBoundParameters
|