You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Add-Border.ps1
-57Lines changed: 0 additions & 57 deletions
Original file line number
Diff line number
Diff line change
@@ -6,63 +6,6 @@ originally published at
6
6
7
7
#>
8
8
FunctionAdd-Border {
9
-
<#
10
-
.Synopsis
11
-
Create a text border around a string.
12
-
13
-
.Description
14
-
This command will create a character or text based border around a line of text. You might use this to create a formatted text report or to improve the display of information to the screen.
15
-
16
-
.ParameterText
17
-
A single line of text that will be wrapped in a border.
18
-
19
-
.ParameterTextblock
20
-
A multiline block of text. You might want to trim blank lines from the beginning, end or both.
21
-
22
-
.ParameterCharacter
23
-
The character to use for the border. It must be a single character.
24
-
25
-
.ParameterInsertBlanks
26
-
Insert blank lines before and after the text. The default behavior is to create a border box close to the text. See examples.
27
-
28
-
.Parameter$Tab
29
-
Insert the specified number of tab characters before the result.
30
-
31
-
.Example
32
-
PS C:\> add-border "PowerShell Wins!"
33
-
********************
34
-
* PowerShell Wins! *
35
-
********************
36
-
37
-
.Example
38
-
PS C:\> add-border "PowerShell Wins!" -tab 1
39
-
40
-
********************
41
-
* PowerShell Wins! *
42
-
********************
43
-
44
-
Note that this example may not format properly in the console.
This command is designed to accept pipelined output and create a markdown document. The pipeline output will formatted as a text block. You can optionally define a title, content to appear before the output and content to appear after the output.
8
+
9
+
The command does not create a text file. You need to pipe results from this command to a cmdlet like Out-File or Set-Content. See examples.
10
+
.ParameterTitle
11
+
Specify a top level title. You do not need to include any markdown.
12
+
.ParameterPreContent
13
+
Enter whatever content you want to appear before converted input. You can use whatever markdown you wish.
14
+
.ParameterPostContent
15
+
Enter whatever content you want to appear after converted input. You can use whatever markdown you wish.
16
+
.ParameterWidth
17
+
Specify the document width. Depending on what you intend to do with the markdown from this command you may want to adjust this value.
0 commit comments