FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
PowerShellGuide/PowerShellGuide.ezout.ps1 at main · PowerShellGuides/PowerShellGuide · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
PowerShellGuides
/
PowerShellGuide
Public
Notifications
You must be signed in to change notification settings
Fork
3
Star
43
Code
Issues
37
Pull requests
0
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
PowerShellGuide
/
PowerShellGuide.ezout.ps1
Copy path
More file actions
More file actions
Latest commit
History
History
History
39 lines (34 loc) · 1.17 KB
Breadcrumbs
PowerShellGuide
/
PowerShellGuide.ezout.ps1
Copy path
File metadata and controls
39 lines (34 loc) · 1.17 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#
requires
-Module
EZOut
#
Install-Module EZOut or https://github.com/StartAutomating/EZOut
$myFile
=
$MyInvocation
.MyCommand.ScriptBlock.File
$myModuleName
=
'
PowerShellGuide
'
$myRoot
=
$myFile
|
Split-Path
Push-Location
$myRoot
$formatting
=
@
(
#
Add your own Write-FormatView here,
#
or put them in a Formatting or Views directory
foreach
(
$potentialDirectory
in
'
Formatting
'
,
'
Views
'
) {
Join-Path
$myRoot
$potentialDirectory
|
Get-ChildItem
-
ea ignore
|
Import-FormatView
-
FilePath {
$_
.Fullname
}
}
)
$destinationRoot
=
$myRoot
if
(
$formatting
) {
$myFormatFile
=
Join-Path
$destinationRoot
"
$myModuleName
.format.ps1xml
"
$formatting
|
Out-FormatData
-
Module
$MyModuleName
|
Set-Content
$myFormatFile
-
Encoding UTF8
Get-Item
$myFormatFile
}
$types
=
@
(
#
Add your own Write-TypeView statements here
#
or declare them in the 'Types' directory
Join-Path
$myRoot
Types
|
Get-Item
-
ea ignore
|
Import-TypeView
)
if
(
$types
) {
$myTypesFile
=
Join-Path
$destinationRoot
"
$myModuleName
.types.ps1xml
"
$types
|
Out-TypeData
|
Set-Content
$myTypesFile
-
Encoding UTF8
Get-Item
$myTypesFile
}
Pop-Location
Back
|
FazBrowse Home
|
New Git URL