feat(project_item): implement Show-ProjectItem function for enhanced item display - #153
Conversation
| @@ -0,0 +1,32 @@ | |||
| function Use-Order { | |||
Check notice
Code scanning / PSScriptAnalyzer
The cmdlet 'Use-Order' does not have a help comment. Note
| $item | Add-Member -NotePropertyName "#" -NotePropertyValue $i -Force | ||
| $i++ | ||
| } | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
…ve transcript export issue
|
|
||
| function Stop-MyTranscript { | ||
| Stop-Transcript | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| $firstLine = $i[1] + 1 | ||
| $lastLine = $i[2] - 1 | ||
|
|
||
| $retlist = $transcriptContent[$firstLine..$lastLine] |
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| @@ -0,0 +1,62 @@ | |||
| function Test_Write_Sucess { | |||
Check notice
Code scanning / PSScriptAnalyzer
The cmdlet 'Test_Write_Sucess' does not have a help comment. Note
|
|
||
| Invoke-PrivateContext { | ||
| Start-Transcript -Path test.log | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| @{ Color = "Cyan"; Text = " "; BetweenQuotes = $false; PreFix = "WhiteSpace: "; ; ExpectedText = "WhiteSpace: (empty)" } | ||
| @{ Color = "Cyan"; Text = " "; BetweenQuotes = $true; PreFix = "WhiteSpace2: "; ; ExpectedText = 'WhiteSpace2: "(empty)"' } | ||
| ) | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| $item.number | write -Color Cyan -PreFix "#" | ||
| addSpace | ||
| $item.Title | write -Color Yellow -BetweenQuotes | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| $item.Title | write -Color Yellow -BetweenQuotes | ||
|
|
||
| addJumpLine | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| } | ||
|
|
||
| addJumpLine | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| if($PreFix){ | ||
| $text = $PreFix + $text | ||
| } | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| $color = $_.Color | ||
| $prefix = $_.Prefix | ||
| $BetweenQuotes = $_.BetweenQuotes | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
Main Feature
Other improvements
Fixes