From 84b0043ae41530ba16e0b3c1e3554d5b7a5fc9a1 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Mon, 25 Sep 2023 17:08:30 -0700 Subject: [PATCH 001/224] Adding $posh.Net (Fixes #281) --- Types/Posh/get_NET.ps1 | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Types/Posh/get_NET.ps1 diff --git a/Types/Posh/get_NET.ps1 b/Types/Posh/get_NET.ps1 new file mode 100644 index 0000000..20abb7c --- /dev/null +++ b/Types/Posh/get_NET.ps1 @@ -0,0 +1,5 @@ +if (-not $this.'.NET') { + $this | Add-Member NoteProperty '.NET' -Value ([PSCustomObject]@{PSTypeName='Posh.NET'}) +} + +$this.'.NET' \ No newline at end of file From ddf72ef95992656087d22e70d6dc5d470209cd31 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 00:10:05 +0000 Subject: [PATCH 002/224] Adding $posh.Net (Fixes #281) --- Posh.types.ps1xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index afc2b0f..6248b9d 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -97,6 +97,16 @@ Get-Job Get-Module + + NET + + if (-not $this.'.NET') { + $this | Add-Member NoteProperty '.NET' -Value ([PSCustomObject]@{PSTypeName='Posh.NET'}) +} + +$this.'.NET' + + Process From 8729464aa9286b4f235df4cf8132672ea01eae0c Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Mon, 25 Sep 2023 17:12:43 -0700 Subject: [PATCH 003/224] Adding Posh.NET Assembly/Assemblies (Fixes #284) --- Types/Posh.NET/Alias.psd1 | 3 +++ Types/Posh.NET/PSTypeName.txt | 1 + Types/Posh.NET/get_Assembly.ps1 | 11 +++++++++++ 3 files changed, 15 insertions(+) create mode 100644 Types/Posh.NET/Alias.psd1 create mode 100644 Types/Posh.NET/PSTypeName.txt create mode 100644 Types/Posh.NET/get_Assembly.ps1 diff --git a/Types/Posh.NET/Alias.psd1 b/Types/Posh.NET/Alias.psd1 new file mode 100644 index 0000000..c6df7ad --- /dev/null +++ b/Types/Posh.NET/Alias.psd1 @@ -0,0 +1,3 @@ +@{ + Assemblies = "Assembly" +} diff --git a/Types/Posh.NET/PSTypeName.txt b/Types/Posh.NET/PSTypeName.txt new file mode 100644 index 0000000..c27a143 --- /dev/null +++ b/Types/Posh.NET/PSTypeName.txt @@ -0,0 +1 @@ +Posh.NET \ No newline at end of file diff --git a/Types/Posh.NET/get_Assembly.ps1 b/Types/Posh.NET/get_Assembly.ps1 new file mode 100644 index 0000000..aad0dab --- /dev/null +++ b/Types/Posh.NET/get_Assembly.ps1 @@ -0,0 +1,11 @@ +<# +.SYNOPSIS + Gets loaded assemblies +.DESCRIPTION + Gets the currently loaded assemblies. +.EXAMPLE + $Posh.Net.Assembly +.EXAMPLE + $Posh.Net.Assemblies +#> +[AppDomain]::CurrentDomain.GetAssemblies() \ No newline at end of file From 1a915abdc6c0f8a96117406226ef69b483c5e226 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 00:13:50 +0000 Subject: [PATCH 004/224] Adding Posh.NET Assembly/Assemblies (Fixes #284) --- Posh.types.ps1xml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index 6248b9d..a992d0f 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -1680,6 +1680,31 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. + + Posh.NET + + + Assemblies + Assembly + + + Assembly + + <# +.SYNOPSIS + Gets loaded assemblies +.DESCRIPTION + Gets the currently loaded assemblies. +.EXAMPLE + $Posh.Net.Assembly +.EXAMPLE + $Posh.Net.Assemblies +#> +[AppDomain]::CurrentDomain.GetAssemblies() + + + + Posh.Parameters From a4fd669123ddb20f90f5686a44e692b0feefd8be Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Mon, 25 Sep 2023 17:21:30 -0700 Subject: [PATCH 005/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- Types/Posh.NET/Alias.psd1 | 3 ++- Types/Posh.NET/get_Type.ps1 | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 Types/Posh.NET/get_Type.ps1 diff --git a/Types/Posh.NET/Alias.psd1 b/Types/Posh.NET/Alias.psd1 index c6df7ad..714e009 100644 --- a/Types/Posh.NET/Alias.psd1 +++ b/Types/Posh.NET/Alias.psd1 @@ -1,3 +1,4 @@ @{ - Assemblies = "Assembly" + Assemblies = "Assembly" + Types = "Type" } diff --git a/Types/Posh.NET/get_Type.ps1 b/Types/Posh.NET/get_Type.ps1 new file mode 100644 index 0000000..28fc1d1 --- /dev/null +++ b/Types/Posh.NET/get_Type.ps1 @@ -0,0 +1,25 @@ +<# +.SYNOPSIS + Gets loaded types +.DESCRIPTION + Gets all currently loaded types. +.EXAMPLE + $Posh.Net.Type +.EXAMPLE + $Posh.Net.Types +#> +if (-not ($this.'.Types')) { + $this | + Add-Member NoteProperty '.Types' -Force -Value @( + foreach ($assembly in $this.Assembly) { + try { + $assembly.GetTypes() + } catch { + $ex = $_ + $error.RemoveAt(0) + } + } + ) +} + +$this.'.Types' \ No newline at end of file From 925bc307e7cb6d13e4d1b8fdabeff894cd9bd24f Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 00:22:37 +0000 Subject: [PATCH 006/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- Posh.types.ps1xml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index a992d0f..e4d00f2 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -1687,6 +1687,10 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. Assemblies Assembly + + Types + Type + Assembly @@ -1703,6 +1707,36 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. [AppDomain]::CurrentDomain.GetAssemblies() + + Type + + <# +.SYNOPSIS + Gets loaded types +.DESCRIPTION + Gets all currently loaded types. +.EXAMPLE + $Posh.Net.Type +.EXAMPLE + $Posh.Net.Types +#> +if (-not ($this.'.Types')) { + $this | + Add-Member NoteProperty '.Types' -Force -Value @( + foreach ($assembly in $this.Assembly) { + try { + $assembly.GetTypes() + } catch { + $ex = $_ + $error.RemoveAt(0) + } + } + ) +} + +$this.'.Types' + + From 824045f53690a22131cfa34c9629ccef2ab60698 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:42 +0000 Subject: [PATCH 007/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docs/Posh/README.md diff --git a/docs/Posh/README.md b/docs/Posh/README.md new file mode 100644 index 0000000..378916a --- /dev/null +++ b/docs/Posh/README.md @@ -0,0 +1,13 @@ +## Posh + + +### Script Methods + + +* [get_Errors](get_Errors.md) +* [get_History](get_History.md) +* [get_Host](get_Host.md) +* [get_Jobs](get_Jobs.md) +* [get_Modules](get_Modules.md) +* [get_Process](get_Process.md) +* [get_Runspace](get_Runspace.md) From 98cb2aca5df8d9127f6e3d0d892a26e54d673929 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:42 +0000 Subject: [PATCH 008/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/get_Errors.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/get_Errors.md diff --git a/docs/Posh/get_Errors.md b/docs/Posh/get_Errors.md new file mode 100644 index 0000000..8415280 --- /dev/null +++ b/docs/Posh/get_Errors.md @@ -0,0 +1,32 @@ +Posh.get_Errors() +----------------- + + + + +### Synopsis +Returns all errors + + + +--- + + +### Description + +Returns all errors from the current session + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Errors +``` + + +--- From 39df865baf7b3a52e0a29591aa75ff80b762c4af Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:42 +0000 Subject: [PATCH 009/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/get_History.md | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docs/Posh/get_History.md diff --git a/docs/Posh/get_History.md b/docs/Posh/get_History.md new file mode 100644 index 0000000..ff65fea --- /dev/null +++ b/docs/Posh/get_History.md @@ -0,0 +1,42 @@ +Posh.get_History() +------------------ + + + + +### Synopsis +Gets the PowerShell History + + + +--- + + +### Description + +Gets the history of commands run in this PowerShell session. + + + +--- + + +### Related Links +* [Get-History](https://learn.microsoft.com/powershell/module/Microsoft.PowerShell.Core/Get-History) + + + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.History +``` + + +--- From e328cfb715cde453d2f663e6611c9cfd1d00e202 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:42 +0000 Subject: [PATCH 010/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/get_Host.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/get_Host.md diff --git a/docs/Posh/get_Host.md b/docs/Posh/get_Host.md new file mode 100644 index 0000000..a1c3ff6 --- /dev/null +++ b/docs/Posh/get_Host.md @@ -0,0 +1,32 @@ +Posh.get_Host() +--------------- + + + + +### Synopsis +Gets the PowerShell Host + + + +--- + + +### Description + +Gets the current PowerShell Host + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Host +``` + + +--- From b46ed562c5fb071a9285f4cdd6cbcf25a86a8997 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:42 +0000 Subject: [PATCH 011/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/get_Jobs.md | 46 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 docs/Posh/get_Jobs.md diff --git a/docs/Posh/get_Jobs.md b/docs/Posh/get_Jobs.md new file mode 100644 index 0000000..5c9ea18 --- /dev/null +++ b/docs/Posh/get_Jobs.md @@ -0,0 +1,46 @@ +Posh.get_Jobs() +--------------- + + + + +### Synopsis +Gets PowerShell Jobs + + + +--- + + +### Description + +Gets PowerShell Background Jobs + + + +--- + + +### Related Links +* [Get-Job](https://learn.microsoft.com/powershell/module/Microsoft.PowerShell.Core/Get-Job) + + + +* [Start-Job](https://learn.microsoft.com/powershell/module/Microsoft.PowerShell.Core/Start-Job) + + + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Jobs +``` + + +--- From 09012e26c8301aeb1463ddb0107b98aef04a5771 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:43 +0000 Subject: [PATCH 012/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/get_Modules.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/Posh/get_Modules.md diff --git a/docs/Posh/get_Modules.md b/docs/Posh/get_Modules.md new file mode 100644 index 0000000..437f4dc --- /dev/null +++ b/docs/Posh/get_Modules.md @@ -0,0 +1,21 @@ +Posh.get_Modules() +------------------ + + + + +### Synopsis +Gets the loaded modules + + + +--- + + +### Description + +Gets the PowerShell modules loaded in the current session. + + + +--- From 4c9a75d3bca80144f67c04a777155dacffab71d6 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:43 +0000 Subject: [PATCH 013/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/get_Process.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/get_Process.md diff --git a/docs/Posh/get_Process.md b/docs/Posh/get_Process.md new file mode 100644 index 0000000..fe72486 --- /dev/null +++ b/docs/Posh/get_Process.md @@ -0,0 +1,32 @@ +Posh.get_Process() +------------------ + + + + +### Synopsis +Gets the PowerShell Process + + + +--- + + +### Description + +Gets the process currently hosting PowerShell + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Process +``` + + +--- From 6cad2412186913ca893cb64f6a86e07639038383 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:43 +0000 Subject: [PATCH 014/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/get_Runspace.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/get_Runspace.md diff --git a/docs/Posh/get_Runspace.md b/docs/Posh/get_Runspace.md new file mode 100644 index 0000000..3a80a3c --- /dev/null +++ b/docs/Posh/get_Runspace.md @@ -0,0 +1,32 @@ +Posh.get_Runspace() +------------------- + + + + +### Synopsis +Gets the PowerShell Runspaces + + + +--- + + +### Description + +Gets the current PowerShell Runspace. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Runspace +``` + + +--- From 5011bb420626b9846e3e32448e48927b0fcec2dc Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:43 +0000 Subject: [PATCH 015/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Commands/README.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 docs/Posh/Commands/README.md diff --git a/docs/Posh/Commands/README.md b/docs/Posh/Commands/README.md new file mode 100644 index 0000000..6d3044f --- /dev/null +++ b/docs/Posh/Commands/README.md @@ -0,0 +1,7 @@ +## Posh.Commands + + +### Script Methods + + +* [FindExtensions](FindExtensions.md) From 29c9d312497920fdaf4a6ccfdfaba77362d16966 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:43 +0000 Subject: [PATCH 016/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Commands/FindExtensions.md | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 docs/Posh/Commands/FindExtensions.md diff --git a/docs/Posh/Commands/FindExtensions.md b/docs/Posh/Commands/FindExtensions.md new file mode 100644 index 0000000..f699c0a --- /dev/null +++ b/docs/Posh/Commands/FindExtensions.md @@ -0,0 +1,29 @@ +Posh.Commands.FindExtensions() +------------------------------ + + + + +### Synopsis + + + + +--- + + +### Description + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Commands.FindExtensions($posh, "$pwd") +``` + + +--- From 7c2e3e04dec7c5a9f15535c245b3a56837fac209 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:43 +0000 Subject: [PATCH 017/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Errors/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docs/Posh/Errors/README.md diff --git a/docs/Posh/Errors/README.md b/docs/Posh/Errors/README.md new file mode 100644 index 0000000..d7711e6 --- /dev/null +++ b/docs/Posh/Errors/README.md @@ -0,0 +1,11 @@ +## Posh.Errors + + +### Script Methods + + +* [LineLike](LineLike.md) +* [LineMatch](LineMatch.md) +* [get_ByLine](get_ByLine.md) +* [get_ByType](get_ByType.md) +* [get_History](get_History.md) From 7e698aa0e91e50f8bb2cb2577533151cff7de46f Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:43 +0000 Subject: [PATCH 018/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Errors/LineLike.md | 53 ++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 docs/Posh/Errors/LineLike.md diff --git a/docs/Posh/Errors/LineLike.md b/docs/Posh/Errors/LineLike.md new file mode 100644 index 0000000..8240269 --- /dev/null +++ b/docs/Posh/Errors/LineLike.md @@ -0,0 +1,53 @@ +Posh.Errors.LineLike() +---------------------- + + + + +### Synopsis +Filters errors by line wildcard + + + +--- + + +### Description + +Filters entries in $Error for items that a .Line like a wildcard. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$error.LineLike("Get-*") +``` + + +--- + + +### Parameters +#### **Like** + +A wildcard pattern. + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |1 |false | + + + + + +--- From 0a3e8a78293f57538b1f04218937fe9c7a413eb4 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:43 +0000 Subject: [PATCH 019/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Errors/LineMatch.md | 53 +++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 docs/Posh/Errors/LineMatch.md diff --git a/docs/Posh/Errors/LineMatch.md b/docs/Posh/Errors/LineMatch.md new file mode 100644 index 0000000..d4f4520 --- /dev/null +++ b/docs/Posh/Errors/LineMatch.md @@ -0,0 +1,53 @@ +Posh.Errors.LineMatch() +----------------------- + + + + +### Synopsis +Filters errors by command pattern + + + +--- + + +### Description + +Filters entries in $Error for items that have a .CommandLine matching the pattern. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$error.LineMatc("^Get") +``` + + +--- + + +### Parameters +#### **Match** + +A regular expression. + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |1 |false | + + + + + +--- From 455130566e7c2d1eaa0bc9228b738ff7bdd011af Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:43 +0000 Subject: [PATCH 020/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Errors/get_ByLine.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/Errors/get_ByLine.md diff --git a/docs/Posh/Errors/get_ByLine.md b/docs/Posh/Errors/get_ByLine.md new file mode 100644 index 0000000..0d7dd53 --- /dev/null +++ b/docs/Posh/Errors/get_ByLine.md @@ -0,0 +1,32 @@ +Posh.Errors.get_ByLine() +------------------------ + + + + +### Synopsis +Gets errors by line + + + +--- + + +### Description + +Gets all lines that produced errors + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$error.ByLine +``` + + +--- From 229dd66cb51fd0fe536f0087282465a294817118 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:43 +0000 Subject: [PATCH 021/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Errors/get_ByType.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/Errors/get_ByType.md diff --git a/docs/Posh/Errors/get_ByType.md b/docs/Posh/Errors/get_ByType.md new file mode 100644 index 0000000..0bbf45f --- /dev/null +++ b/docs/Posh/Errors/get_ByType.md @@ -0,0 +1,32 @@ +Posh.Errors.get_ByType() +------------------------ + + + + +### Synopsis +Gets Errors By Type + + + +--- + + +### Description + +Returns all errors, by type of error. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Errors.ByType +``` + + +--- From 8c617ecab9c46b4234e3fda9de716d76652941ac Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:43 +0000 Subject: [PATCH 022/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Errors/get_History.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/Errors/get_History.md diff --git a/docs/Posh/Errors/get_History.md b/docs/Posh/Errors/get_History.md new file mode 100644 index 0000000..f89933f --- /dev/null +++ b/docs/Posh/Errors/get_History.md @@ -0,0 +1,32 @@ +Posh.Errors.get_History() +------------------------- + + + + +### Synopsis +Gets Error History + + + +--- + + +### Description + +Gets the history items associated with PowerShell Errors + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Error.History +``` + + +--- From 718efa2765375a25debc48216295fe27104a7e4e Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:43 +0000 Subject: [PATCH 023/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/ExtensionCollection/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docs/Posh/ExtensionCollection/README.md diff --git a/docs/Posh/ExtensionCollection/README.md b/docs/Posh/ExtensionCollection/README.md new file mode 100644 index 0000000..bcabb45 --- /dev/null +++ b/docs/Posh/ExtensionCollection/README.md @@ -0,0 +1,15 @@ +## Posh.ExtensionCollection + + +### Script Methods + + +* [get_All](get_All.md) +* [get_CommandType](get_CommandType.md) +* [set_CommandType](set_CommandType.md) +* [get_Count](get_Count.md) +* [get_Module](get_Module.md) +* [set_Module](set_Module.md) +* [get_Path](get_Path.md) +* [set_Path](set_Path.md) +* [get_Random](get_Random.md) From 772884bb3d3cf47aed8b23168478e4e7f7fd1e68 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:43 +0000 Subject: [PATCH 024/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/ExtensionCollection/get_All.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/Posh/ExtensionCollection/get_All.md diff --git a/docs/Posh/ExtensionCollection/get_All.md b/docs/Posh/ExtensionCollection/get_All.md new file mode 100644 index 0000000..a6e990b --- /dev/null +++ b/docs/Posh/ExtensionCollection/get_All.md @@ -0,0 +1,21 @@ +Posh.ExtensionCollection.get_All() +---------------------------------- + + + + +### Synopsis +Gets all items in an extension collection. + + + +--- + + +### Description + +Gets all items in a collection of extended commands. + + + +--- From c3a259652135e3327f88f6f2d52d96055db1e058 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:43 +0000 Subject: [PATCH 025/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../ExtensionCollection/get_CommandType.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docs/Posh/ExtensionCollection/get_CommandType.md diff --git a/docs/Posh/ExtensionCollection/get_CommandType.md b/docs/Posh/ExtensionCollection/get_CommandType.md new file mode 100644 index 0000000..b6e3818 --- /dev/null +++ b/docs/Posh/ExtensionCollection/get_CommandType.md @@ -0,0 +1,23 @@ +Posh.ExtensionCollection.get_CommandType() +------------------------------------------ + + + + +### Synopsis +Gets an extension collection's CommandType + + + +--- + + +### Description + +Gets the extended CommandTypes(s) that are stored in an extension collection. + +CommandTypes can be defined in a module's manifest. + + + +--- From 4a11d17e6282ccda85b30ff807f45e8190379412 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:43 +0000 Subject: [PATCH 026/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../ExtensionCollection/set_CommandType.md | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docs/Posh/ExtensionCollection/set_CommandType.md diff --git a/docs/Posh/ExtensionCollection/set_CommandType.md b/docs/Posh/ExtensionCollection/set_CommandType.md new file mode 100644 index 0000000..d90f9a4 --- /dev/null +++ b/docs/Posh/ExtensionCollection/set_CommandType.md @@ -0,0 +1,42 @@ +Posh.ExtensionCollection.set_CommandType() +------------------------------------------ + + + + +### Synopsis +Sets an extension collection's command type + + + +--- + + +### Description + +Sets the extended command types in an extension collection. + + + +--- + + +### Parameters +#### **CommandType** + +The path. If this is empty all extended commands will be present in the collection + + + + + + +|Type |Required|Position|PipelineInput| +|------------|--------|--------|-------------| +|`[String[]]`|false |1 |false | + + + + + +--- From 716674b2a055a5888c68866961c731a94febf716 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:44 +0000 Subject: [PATCH 027/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/ExtensionCollection/get_Count.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/Posh/ExtensionCollection/get_Count.md diff --git a/docs/Posh/ExtensionCollection/get_Count.md b/docs/Posh/ExtensionCollection/get_Count.md new file mode 100644 index 0000000..d0b24ac --- /dev/null +++ b/docs/Posh/ExtensionCollection/get_Count.md @@ -0,0 +1,21 @@ +Posh.ExtensionCollection.get_Count() +------------------------------------ + + + + +### Synopsis +Gets the extension count. + + + +--- + + +### Description + +Gets the count of all extensions in a collection. + + + +--- From 3776812a618980b7a0915ddf5b4956339dca3ced Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:44 +0000 Subject: [PATCH 028/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/ExtensionCollection/get_Module.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/Posh/ExtensionCollection/get_Module.md diff --git a/docs/Posh/ExtensionCollection/get_Module.md b/docs/Posh/ExtensionCollection/get_Module.md new file mode 100644 index 0000000..444a462 --- /dev/null +++ b/docs/Posh/ExtensionCollection/get_Module.md @@ -0,0 +1,21 @@ +Posh.ExtensionCollection.get_Module() +------------------------------------- + + + + +### Synopsis +Gets an extension collection's module + + + +--- + + +### Description + +Gets the module that defines extended types in an extension collection. + + + +--- From fdf26daed477f746a96dcdad71d556f0e51cbff1 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:44 +0000 Subject: [PATCH 029/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/ExtensionCollection/set_Module.md | 42 +++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docs/Posh/ExtensionCollection/set_Module.md diff --git a/docs/Posh/ExtensionCollection/set_Module.md b/docs/Posh/ExtensionCollection/set_Module.md new file mode 100644 index 0000000..32efe2f --- /dev/null +++ b/docs/Posh/ExtensionCollection/set_Module.md @@ -0,0 +1,42 @@ +Posh.ExtensionCollection.set_Module() +------------------------------------- + + + + +### Synopsis +Sets an extension collection's module + + + +--- + + +### Description + +Sets the module that defines extended command types in an extension collection. + + + +--- + + +### Parameters +#### **Module** + +The module. + + + + + + +|Type |Required|Position|PipelineInput| +|----------------|--------|--------|-------------| +|`[PSModuleInfo]`|false |1 |false | + + + + + +--- From ae21109941ad9a245a6806073b7be8a3963a1ddd Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:44 +0000 Subject: [PATCH 030/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/ExtensionCollection/get_Path.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/Posh/ExtensionCollection/get_Path.md diff --git a/docs/Posh/ExtensionCollection/get_Path.md b/docs/Posh/ExtensionCollection/get_Path.md new file mode 100644 index 0000000..638b842 --- /dev/null +++ b/docs/Posh/ExtensionCollection/get_Path.md @@ -0,0 +1,21 @@ +Posh.ExtensionCollection.get_Path() +----------------------------------- + + + + +### Synopsis +Gets an extension collection's Path + + + +--- + + +### Description + +Gets the Path(s) that store extensions in an extension collection. + + + +--- From 2d5602aeba12c74be02a69ef7b7782f3330d0884 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:44 +0000 Subject: [PATCH 031/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/ExtensionCollection/set_Path.md | 42 +++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docs/Posh/ExtensionCollection/set_Path.md diff --git a/docs/Posh/ExtensionCollection/set_Path.md b/docs/Posh/ExtensionCollection/set_Path.md new file mode 100644 index 0000000..b504e1b --- /dev/null +++ b/docs/Posh/ExtensionCollection/set_Path.md @@ -0,0 +1,42 @@ +Posh.ExtensionCollection.set_Path() +----------------------------------- + + + + +### Synopsis +Sets an extension collection's path + + + +--- + + +### Description + +Sets the path that defines extended command types in an extension collection. + + + +--- + + +### Parameters +#### **Path** + +The path. If this is empty, only extensions that are functions or aliases will be found. + + + + + + +|Type |Required|Position|PipelineInput| +|------------|--------|--------|-------------| +|`[String[]]`|false |1 |false | + + + + + +--- From f040f68b0ed3e651964be1f3b5dffe3421b1a27c Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:44 +0000 Subject: [PATCH 032/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/ExtensionCollection/get_Random.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/Posh/ExtensionCollection/get_Random.md diff --git a/docs/Posh/ExtensionCollection/get_Random.md b/docs/Posh/ExtensionCollection/get_Random.md new file mode 100644 index 0000000..e31f0b5 --- /dev/null +++ b/docs/Posh/ExtensionCollection/get_Random.md @@ -0,0 +1,21 @@ +Posh.ExtensionCollection.get_Random() +------------------------------------- + + + + +### Synopsis +Gets a random extended command + + + +--- + + +### Description + +Gets a random extended command from an ExtensionCollection. + + + +--- From eb3402f4d15b98050fb8c6e6925207cbe68b191b Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:44 +0000 Subject: [PATCH 033/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Host/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 docs/Posh/Host/README.md diff --git a/docs/Posh/Host/README.md b/docs/Posh/Host/README.md new file mode 100644 index 0000000..f110ae7 --- /dev/null +++ b/docs/Posh/Host/README.md @@ -0,0 +1,12 @@ +## Posh.Host + + +### Script Methods + + +* [Choose](Choose.md) +* [get_Cursor](get_Cursor.md) +* [get_Height](get_Height.md) +* [get_Title](get_Title.md) +* [set_Title](set_Title.md) +* [get_Width](get_Width.md) From fd771b831f3b17d7bfac5d43fce7d3757fd4d883 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:44 +0000 Subject: [PATCH 034/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Host/Choose.md | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 docs/Posh/Host/Choose.md diff --git a/docs/Posh/Host/Choose.md b/docs/Posh/Host/Choose.md new file mode 100644 index 0000000..ea40191 --- /dev/null +++ b/docs/Posh/Host/Choose.md @@ -0,0 +1,43 @@ +Posh.Host.Choose() +------------------ + + + + +### Synopsis +Prompts a choice + + + +--- + + +### Description + +Prompts a choice between multiple options. + +An option can be a string, hashtable, or scriptblock. + +Hashtables keys and arrays will become a list of possible choices. + +Strings will be outputted as a message. + +A boolean will indicate multiple items can be chosen. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Host.Choose( + "Cake Or Death?", + @("Cake", "Death") +) +``` + + +--- From e8ce67d250dda7982a4010b1784d7f7b1ce547ee Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:44 +0000 Subject: [PATCH 035/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Host/get_Cursor.md | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docs/Posh/Host/get_Cursor.md diff --git a/docs/Posh/Host/get_Cursor.md b/docs/Posh/Host/get_Cursor.md new file mode 100644 index 0000000..fc0838f --- /dev/null +++ b/docs/Posh/Host/get_Cursor.md @@ -0,0 +1,42 @@ +Posh.Host.get_Cursor() +---------------------- + + + + +### Synopsis +Gets the cursor + + + +--- + + +### Description + +Gets the console cursor. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Host.Cursor +``` +> EXAMPLE 2 + +```PowerShell +$Posh.Host.Cursor +``` +> EXAMPLE 3 + +```PowerShell +$Posh.Cursor.Position +``` + + +--- From d2404a59ba1ff8d012f090b09d2e838d6b09b28a Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:44 +0000 Subject: [PATCH 036/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Host/get_Height.md | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docs/Posh/Host/get_Height.md diff --git a/docs/Posh/Host/get_Height.md b/docs/Posh/Host/get_Height.md new file mode 100644 index 0000000..cd1f38d --- /dev/null +++ b/docs/Posh/Host/get_Height.md @@ -0,0 +1,37 @@ +Posh.Host.get_Height() +---------------------- + + + + +### Synopsis +Gets the height of the host + + + +--- + + +### Description + +Gets the height of the host (in characters). + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Host.Height +``` +> EXAMPLE 2 + +```PowerShell +$Host.Height +``` + + +--- From a9fd9340263de3aa746c1680c5b7368893a59c21 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:44 +0000 Subject: [PATCH 037/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Host/get_Title.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/Host/get_Title.md diff --git a/docs/Posh/Host/get_Title.md b/docs/Posh/Host/get_Title.md new file mode 100644 index 0000000..aff2e5b --- /dev/null +++ b/docs/Posh/Host/get_Title.md @@ -0,0 +1,32 @@ +Posh.Host.get_Title() +--------------------- + + + + +### Synopsis +Gets the host's title + + + +--- + + +### Description + +Gets the host's window title. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Title +``` + + +--- From 6d178c557f7c0e76859d42054baf2222d989795d Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:44 +0000 Subject: [PATCH 038/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Host/set_Title.md | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 docs/Posh/Host/set_Title.md diff --git a/docs/Posh/Host/set_Title.md b/docs/Posh/Host/set_Title.md new file mode 100644 index 0000000..eafa98b --- /dev/null +++ b/docs/Posh/Host/set_Title.md @@ -0,0 +1,51 @@ +Posh.Host.set_Title() +--------------------- + + + + +### Synopsis +Sets the host's title + + + +--- + + +### Description + +Sets the host's window title. + +Unfortunately, this will be ignored if running in Visual Studio Code. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Title = "Sup?" +``` + + +--- + + +### Parameters +#### **Title** + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |1 |false | + + + + + +--- From 7567beb09eae46ed2de740c21e4e0fa9f29ab487 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:44 +0000 Subject: [PATCH 039/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Host/get_Width.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docs/Posh/Host/get_Width.md diff --git a/docs/Posh/Host/get_Width.md b/docs/Posh/Host/get_Width.md new file mode 100644 index 0000000..cc82787 --- /dev/null +++ b/docs/Posh/Host/get_Width.md @@ -0,0 +1,37 @@ +Posh.Host.get_Width() +--------------------- + + + + +### Synopsis +Gets the Width of the host + + + +--- + + +### Description + +Gets the Width of the host (in characters). + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Host.Width +``` +> EXAMPLE 2 + +```PowerShell +$Host.Width +``` + + +--- From 5945a497ccfe7ce7ea6f95d7639281536d51e9f6 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:44 +0000 Subject: [PATCH 040/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Host/Cursor/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 docs/Posh/Host/Cursor/README.md diff --git a/docs/Posh/Host/Cursor/README.md b/docs/Posh/Host/Cursor/README.md new file mode 100644 index 0000000..4e4db46 --- /dev/null +++ b/docs/Posh/Host/Cursor/README.md @@ -0,0 +1,16 @@ +## Posh.Host.Cursor + + +### Script Methods + + +* [Back](Back.md) +* [Down](Down.md) +* [Forward](Forward.md) +* [Hide](Hide.md) +* [PageDown](PageDown.md) +* [PageUp](PageUp.md) +* [SetPosition](SetPosition.md) +* [Show](Show.md) +* [Up](Up.md) +* [get_Position](get_Position.md) From 7aaf3f536e391a177bc10648ab7c82eb6d07ed9a Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:44 +0000 Subject: [PATCH 041/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Host/Cursor/Back.md | 51 +++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 docs/Posh/Host/Cursor/Back.md diff --git a/docs/Posh/Host/Cursor/Back.md b/docs/Posh/Host/Cursor/Back.md new file mode 100644 index 0000000..e6f8974 --- /dev/null +++ b/docs/Posh/Host/Cursor/Back.md @@ -0,0 +1,51 @@ +Posh.Host.Cursor.Back() +----------------------- + + + + +### Synopsis +Moves the cursor back + + + +--- + + +### Description + +Moves the cursor N (default 1) cells back. +If the cursor is already at the edge of the screen, this has no effect. + + + +--- + + +### Parameters +#### **Distance** + +How far the cursor should move. + + + + + + +|Type |Required|Position|PipelineInput|Aliases| +|---------|--------|--------|-------------|-------| +|`[Int32]`|false |1 |false |N | + + + + + +--- + + +### Notes +This method returns an escape sequence (it should be invisible). + + + +--- From f86967030e40ae0bc7f5fb0ff683b3fd149de6e6 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:45 +0000 Subject: [PATCH 042/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Host/Cursor/Down.md | 51 +++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 docs/Posh/Host/Cursor/Down.md diff --git a/docs/Posh/Host/Cursor/Down.md b/docs/Posh/Host/Cursor/Down.md new file mode 100644 index 0000000..b53ee85 --- /dev/null +++ b/docs/Posh/Host/Cursor/Down.md @@ -0,0 +1,51 @@ +Posh.Host.Cursor.Down() +----------------------- + + + + +### Synopsis +Moves the cursor down + + + +--- + + +### Description + +Moves the cursor N (default 1) cells down. +If the cursor is already at the edge of the screen, this has no effect. + + + +--- + + +### Parameters +#### **Distance** + +How far the cursor should move + + + + + + +|Type |Required|Position|PipelineInput| +|---------|--------|--------|-------------| +|`[Int32]`|false |1 |false | + + + + + +--- + + +### Notes +This method returns an escape sequence (it should be invisible). + + + +--- From 86b779cd9c71f16a9cc662501b567a689b670011 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:45 +0000 Subject: [PATCH 043/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Host/Cursor/Forward.md | 51 ++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 docs/Posh/Host/Cursor/Forward.md diff --git a/docs/Posh/Host/Cursor/Forward.md b/docs/Posh/Host/Cursor/Forward.md new file mode 100644 index 0000000..edc6b69 --- /dev/null +++ b/docs/Posh/Host/Cursor/Forward.md @@ -0,0 +1,51 @@ +Posh.Host.Cursor.Forward() +-------------------------- + + + + +### Synopsis +Moves the cursor forward + + + +--- + + +### Description + +Moves the cursor N (default 1) cells back. +If the cursor is already at the edge of the screen, this has no effect. + + + +--- + + +### Parameters +#### **Distance** + +How far the cursor should move + + + + + + +|Type |Required|Position|PipelineInput|Aliases| +|---------|--------|--------|-------------|-------| +|`[Int32]`|false |1 |false |N | + + + + + +--- + + +### Notes +This method returns an escape sequence (it should be invisible). + + + +--- From 0bb778fe6a46c254a3bc33939a0b4e27c0fd45b1 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:45 +0000 Subject: [PATCH 044/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Host/Cursor/Hide.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 docs/Posh/Host/Cursor/Hide.md diff --git a/docs/Posh/Host/Cursor/Hide.md b/docs/Posh/Host/Cursor/Hide.md new file mode 100644 index 0000000..a6c5fae --- /dev/null +++ b/docs/Posh/Host/Cursor/Hide.md @@ -0,0 +1,29 @@ +Posh.Host.Cursor.Hide() +----------------------- + + + + +### Synopsis +Hides the cursor + + + +--- + + +### Description + +Hides the cursor. This is not supported in all terminals. + + + +--- + + +### Notes +This method returns an escape sequence (it should be invisible). + + + +--- From 5f9c86e9ed709d387f815687e8aa0e5043899667 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:45 +0000 Subject: [PATCH 045/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Host/Cursor/PageDown.md | 50 +++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 docs/Posh/Host/Cursor/PageDown.md diff --git a/docs/Posh/Host/Cursor/PageDown.md b/docs/Posh/Host/Cursor/PageDown.md new file mode 100644 index 0000000..80f25f7 --- /dev/null +++ b/docs/Posh/Host/Cursor/PageDown.md @@ -0,0 +1,50 @@ +Posh.Host.Cursor.PageDown() +--------------------------- + + + + +### Synopsis +Pages the cursor down + + + +--- + + +### Description + +Pages the cursor N (default 1) pages down. New lines are added at the top. + + + +--- + + +### Parameters +#### **Distance** + +How far the cursor should move + + + + + + +|Type |Required|Position|PipelineInput|Aliases| +|---------|--------|--------|-------------|-------| +|`[Int32]`|false |1 |false |Rows | + + + + + +--- + + +### Notes +This method returns an escape sequence (it should be invisible). + + + +--- From 075908a44da7b98b0313e2ce08ef888d93bd30bb Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:45 +0000 Subject: [PATCH 046/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Host/Cursor/PageUp.md | 50 +++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 docs/Posh/Host/Cursor/PageUp.md diff --git a/docs/Posh/Host/Cursor/PageUp.md b/docs/Posh/Host/Cursor/PageUp.md new file mode 100644 index 0000000..3434799 --- /dev/null +++ b/docs/Posh/Host/Cursor/PageUp.md @@ -0,0 +1,50 @@ +Posh.Host.Cursor.PageUp() +------------------------- + + + + +### Synopsis +Pages the cursor up. + + + +--- + + +### Description + +Pages the cursor N (default 1) pages up. New lines are added at the bottom. + + + +--- + + +### Parameters +#### **Distance** + +How far the cursor should move + + + + + + +|Type |Required|Position|PipelineInput|Aliases| +|---------|--------|--------|-------------|-------| +|`[Int32]`|false |1 |false |Rows | + + + + + +--- + + +### Notes +This method returns an escape sequence (it should be invisible). + + + +--- From 3fcd68689c01cacd7f03b1b75e1f0828b696ebb6 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:45 +0000 Subject: [PATCH 047/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Host/Cursor/SetPosition.md | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 docs/Posh/Host/Cursor/SetPosition.md diff --git a/docs/Posh/Host/Cursor/SetPosition.md b/docs/Posh/Host/Cursor/SetPosition.md new file mode 100644 index 0000000..b1297db --- /dev/null +++ b/docs/Posh/Host/Cursor/SetPosition.md @@ -0,0 +1,38 @@ +Posh.Host.Cursor.SetPosition() +------------------------------ + + + + +### Synopsis +Sets the cursor position. + + + +--- + + +### Description + +Sets the position of the cursor. This is not supported in all terminals. + +The position can be provided as a pair of integers. + +The first integer will be the row, the second integer will be the column. + +The position can also be provided as an object with any of the following properties: + +* X/Column/Left +* Y/Row/Top + + + +--- + + +### Notes +This method returns an escape sequence (it should be invisible). + + + +--- From 0410e0f293acbc3a0c022a68e48999163d8eaa9c Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:45 +0000 Subject: [PATCH 048/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Host/Cursor/Show.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 docs/Posh/Host/Cursor/Show.md diff --git a/docs/Posh/Host/Cursor/Show.md b/docs/Posh/Host/Cursor/Show.md new file mode 100644 index 0000000..21331e7 --- /dev/null +++ b/docs/Posh/Host/Cursor/Show.md @@ -0,0 +1,29 @@ +Posh.Host.Cursor.Show() +----------------------- + + + + +### Synopsis +Shows the cursor + + + +--- + + +### Description + +Shows the cursor. This is not supported in all terminals. + + + +--- + + +### Notes +This method returns an escape sequence (it should be invisible). + + + +--- From 871d4ed981a1b6d2fa493e275eed1ed927ecf69a Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:45 +0000 Subject: [PATCH 049/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Host/Cursor/Up.md | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 docs/Posh/Host/Cursor/Up.md diff --git a/docs/Posh/Host/Cursor/Up.md b/docs/Posh/Host/Cursor/Up.md new file mode 100644 index 0000000..17cb3b2 --- /dev/null +++ b/docs/Posh/Host/Cursor/Up.md @@ -0,0 +1,43 @@ +Posh.Host.Cursor.Up() +--------------------- + + + + +### Synopsis +Moves the cursor up + + + +--- + + +### Description + +Moves the cursor N (default 1) cells up. +If the cursor is already at the edge of the screen, this has no effect. + + + +--- + + +### Parameters +#### **Distance** + +How far the cursor should move + + + + + + +|Type |Required|Position|PipelineInput|Aliases| +|---------|--------|--------|-------------|-------| +|`[Int32]`|false |1 |false |N | + + + + + +--- From 3d5e0ce786169a61edcfd08352a024e0d228d120 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:45 +0000 Subject: [PATCH 050/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Host/Cursor/get_Position.md | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/Host/Cursor/get_Position.md diff --git a/docs/Posh/Host/Cursor/get_Position.md b/docs/Posh/Host/Cursor/get_Position.md new file mode 100644 index 0000000..765388c --- /dev/null +++ b/docs/Posh/Host/Cursor/get_Position.md @@ -0,0 +1,32 @@ +Posh.Host.Cursor.get_Position() +------------------------------- + + + + +### Synopsis +Gets the cursor position + + + +--- + + +### Description + +Gets the cursor position + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Host.Cursor.Position +``` + + +--- From f0feb85b7494dbb705dd0cf55f2efe3b5125ce80 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:45 +0000 Subject: [PATCH 051/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Input/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docs/Posh/Input/README.md diff --git a/docs/Posh/Input/README.md b/docs/Posh/Input/README.md new file mode 100644 index 0000000..3621630 --- /dev/null +++ b/docs/Posh/Input/README.md @@ -0,0 +1,22 @@ +## Posh.Input + + +PowerShell has a robust input system. + +There's a very useful module by the name of PSReadLine that helps handle advanced input. + +Posh allows you to override the input function for PowerShell in a safe, stackable way. + +Pipe `$posh.Input` into `Get-Member` to see what it can do. +### Script Methods + + +* [Append](Append.md) +* [Clear](Clear.md) +* [Pop](Pop.md) +* [Prepend](Prepend.md) +* [Push](Push.md) +* [Replace](Replace.md) +* [Stringify](Stringify.md) +* [get_Current](get_Current.md) +* [set_Current](set_Current.md) From a15957db16ee48e81f31bb9dc638f7d5bfdd2131 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:45 +0000 Subject: [PATCH 052/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Input/Append.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 docs/Posh/Input/Append.md diff --git a/docs/Posh/Input/Append.md b/docs/Posh/Input/Append.md new file mode 100644 index 0000000..3fd7098 --- /dev/null +++ b/docs/Posh/Input/Append.md @@ -0,0 +1,39 @@ +Posh.Input.Append() +------------------- + + + + +### Synopsis +Appends content to a stackable function + + + +--- + + +### Description + + +--- + + +### Parameters +#### **Value** + +The value to prepend. + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |1 |false | + + + + + +--- From 4eafc3f38846a75be7c4a72677f11ba2807dd4bc Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:45 +0000 Subject: [PATCH 053/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Input/Clear.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/Input/Clear.md diff --git a/docs/Posh/Input/Clear.md b/docs/Posh/Input/Clear.md new file mode 100644 index 0000000..8c024a9 --- /dev/null +++ b/docs/Posh/Input/Clear.md @@ -0,0 +1,32 @@ +Posh.Input.Clear() +------------------ + + + + +### Synopsis +Clears a stackable function + + + +--- + + +### Description + +Clears a stackable function, resetting it to it's original state. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Prompt.Clear() +``` + + +--- From fb0d665ca4a1072a17fc7568c495bf04eecc7976 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:45 +0000 Subject: [PATCH 054/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Input/Pop.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/Input/Pop.md diff --git a/docs/Posh/Input/Pop.md b/docs/Posh/Input/Pop.md new file mode 100644 index 0000000..c74cfa5 --- /dev/null +++ b/docs/Posh/Input/Pop.md @@ -0,0 +1,32 @@ +Posh.Input.Pop() +---------------- + + + + +### Synopsis +Pops the last value from a function stack + + + +--- + + +### Description + +Pops the latest value from a function stack, such as the prompt. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Prompt.Pop() +``` + + +--- From 22c13bad667749bbd3b9f0b7adb53843a49bbec5 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:45 +0000 Subject: [PATCH 055/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Input/Prepend.md | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 docs/Posh/Input/Prepend.md diff --git a/docs/Posh/Input/Prepend.md b/docs/Posh/Input/Prepend.md new file mode 100644 index 0000000..586ee4d --- /dev/null +++ b/docs/Posh/Input/Prepend.md @@ -0,0 +1,44 @@ +Posh.Input.Prepend() +-------------------- + + + + +### Synopsis +Prepends content to a stackable function. + + + +--- + + +### Description + +Prepends content to a stackable function. + +This takes the current entry and adds content to it's beginning. + + + +--- + + +### Parameters +#### **Value** + +The value to prepend. + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |1 |false | + + + + + +--- From 51df2c9da5868a58fe56279e4b90b57a03d8f553 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:45 +0000 Subject: [PATCH 056/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Input/Push.md | 45 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 docs/Posh/Input/Push.md diff --git a/docs/Posh/Input/Push.md b/docs/Posh/Input/Push.md new file mode 100644 index 0000000..2307ed9 --- /dev/null +++ b/docs/Posh/Input/Push.md @@ -0,0 +1,45 @@ +Posh.Input.Push() +----------------- + + + + +### Synopsis +Pushes an entry into a stackable function + + + +--- + + +### Description + +Pushes an entry into a stackable function. + +This overwrites the existing entry, +and adds the previous value to the stack so it can be easily undone. + + + +--- + + +### Parameters +#### **Value** + +The new value for the function + + + + + + +|Type |Required|Position|PipelineInput| +|---------------|--------|--------|-------------| +|`[ScriptBlock]`|false |1 |false | + + + + + +--- From 827e988dc1b0ee9de34f5e187d04d063eb409955 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:46 +0000 Subject: [PATCH 057/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Input/Replace.md | 79 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 docs/Posh/Input/Replace.md diff --git a/docs/Posh/Input/Replace.md b/docs/Posh/Input/Replace.md new file mode 100644 index 0000000..e68a636 --- /dev/null +++ b/docs/Posh/Input/Replace.md @@ -0,0 +1,79 @@ +Posh.Input.Replace() +-------------------- + + + + +### Synopsis +Replaces content within a function + + + +--- + + +### Description + +Replaces content within a stackable function, such as the prompt. + + + +--- + + +### Examples +Replace both ends of the prompt + +```PowerShell +$Posh.Prompt.Replace('PS ', 0x27d6,$true).Replace('>', 0x27d5, $true) +``` +> EXAMPLE 2 + +```PowerShell +$Posh.Prompt.Replace($( + if ($env:User) { + $env:User + } elseif ($env:UserName) { + $env:UserName + } +),'***') +``` + + +--- + + +### Parameters +#### **Replace** + +The content to replace + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |1 |false | + + + +#### **Value** + +The new value + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |2 |false | + + + + + +--- From 42dec9a810aab66ebe717d4b01eefd7edbc3cc8b Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:46 +0000 Subject: [PATCH 058/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Input/Stringify.md | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 docs/Posh/Input/Stringify.md diff --git a/docs/Posh/Input/Stringify.md b/docs/Posh/Input/Stringify.md new file mode 100644 index 0000000..46d89a8 --- /dev/null +++ b/docs/Posh/Input/Stringify.md @@ -0,0 +1,40 @@ +Posh.Input.Stringify() +---------------------- + + + + +### Synopsis +Converts into a stringified value + + + +--- + + +### Description + +Converts an item into a stringified value. + +This is used internally by stackable functions when they are prepending or appending. + + + +--- + + +### Parameters +#### **Prompt** + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |1 |false | + + + + + +--- From db4d0d1c4cedd4db203aef81b5e78c1ce01ec8a9 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:46 +0000 Subject: [PATCH 059/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Input/get_Current.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/Input/get_Current.md diff --git a/docs/Posh/Input/get_Current.md b/docs/Posh/Input/get_Current.md new file mode 100644 index 0000000..3e78697 --- /dev/null +++ b/docs/Posh/Input/get_Current.md @@ -0,0 +1,32 @@ +Posh.Input.get_Current() +------------------------ + + + + +### Synopsis +Gets the value of a stackable function + + + +--- + + +### Description + +Gets the current value of a stackable function. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Prompt.Current +``` + + +--- From 87945bf83dc2202829faa57d3ab22e75928f7509 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:46 +0000 Subject: [PATCH 060/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Input/set_Current.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 docs/Posh/Input/set_Current.md diff --git a/docs/Posh/Input/set_Current.md b/docs/Posh/Input/set_Current.md new file mode 100644 index 0000000..9d341e8 --- /dev/null +++ b/docs/Posh/Input/set_Current.md @@ -0,0 +1,34 @@ +Posh.Input.set_Current() +------------------------ + + + + +### Synopsis +Sets the current implementation of a function + + + +--- + + +### Description + +Sets the current imlementation of a stackable function. + +Stackable functions keep a stack of all prior entries for easy undo. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Prompt.Current = {"?"} +``` + + +--- From d48be6533db76e22641057a99f0c54ca734ee3ab Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:46 +0000 Subject: [PATCH 061/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/NET/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 docs/Posh/NET/README.md diff --git a/docs/Posh/NET/README.md b/docs/Posh/NET/README.md new file mode 100644 index 0000000..c4aa1c6 --- /dev/null +++ b/docs/Posh/NET/README.md @@ -0,0 +1,8 @@ +## Posh.NET + + +### Script Methods + + +* [get_Assembly](get_Assembly.md) +* [get_Type](get_Type.md) From cf9845dfd1ae9d9f148ddd278bd354de763e3de8 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:46 +0000 Subject: [PATCH 062/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/NET/get_Assembly.md | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docs/Posh/NET/get_Assembly.md diff --git a/docs/Posh/NET/get_Assembly.md b/docs/Posh/NET/get_Assembly.md new file mode 100644 index 0000000..dbc687f --- /dev/null +++ b/docs/Posh/NET/get_Assembly.md @@ -0,0 +1,37 @@ +Posh.NET.get_Assembly() +----------------------- + + + + +### Synopsis +Gets loaded assemblies + + + +--- + + +### Description + +Gets the currently loaded assemblies. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Net.Assembly +``` +> EXAMPLE 2 + +```PowerShell +$Posh.Net.Assemblies +``` + + +--- From 46d75c2f433e6ef0c23c7ca77108fb3216f95090 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:46 +0000 Subject: [PATCH 063/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/NET/get_Type.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docs/Posh/NET/get_Type.md diff --git a/docs/Posh/NET/get_Type.md b/docs/Posh/NET/get_Type.md new file mode 100644 index 0000000..bc7b709 --- /dev/null +++ b/docs/Posh/NET/get_Type.md @@ -0,0 +1,37 @@ +Posh.NET.get_Type() +------------------- + + + + +### Synopsis +Gets loaded types + + + +--- + + +### Description + +Gets all currently loaded types. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Net.Type +``` +> EXAMPLE 2 + +```PowerShell +$Posh.Net.Types +``` + + +--- From 39236aabe4d4dfbd4b4237144eca8501e5ee4af9 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:46 +0000 Subject: [PATCH 064/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Parameters/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 docs/Posh/Parameters/README.md diff --git a/docs/Posh/Parameters/README.md b/docs/Posh/Parameters/README.md new file mode 100644 index 0000000..83cfc02 --- /dev/null +++ b/docs/Posh/Parameters/README.md @@ -0,0 +1,16 @@ +## Posh.Parameters + + +One of the strengths of PowerShell is how it treats parameters. + +You can find metadata about any command's parameters. + +You can also provide default values for any command's parameters. + +`$Posh.Parameters` helps you Find PowerShell parameters and manage their default values. +### Script Methods + + +* [Clear](Clear.md) +* [Remove](Remove.md) +* [SetDefault](SetDefault.md) From f93ae37fe0c394a70d68c512dfd8c2684c1c5a16 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:46 +0000 Subject: [PATCH 065/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Parameters/Clear.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/Parameters/Clear.md diff --git a/docs/Posh/Parameters/Clear.md b/docs/Posh/Parameters/Clear.md new file mode 100644 index 0000000..4b9bbca --- /dev/null +++ b/docs/Posh/Parameters/Clear.md @@ -0,0 +1,32 @@ +Posh.Parameters.Clear() +----------------------- + + + + +### Synopsis +Clears default parameter values. + + + +--- + + +### Description + +Clears all default parameter values. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Parameters.Clear() +``` + + +--- From a738477ddb2e0d49ea0eb653c8bde3b2412859cb Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:46 +0000 Subject: [PATCH 066/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Parameters/Remove.md | 70 ++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 docs/Posh/Parameters/Remove.md diff --git a/docs/Posh/Parameters/Remove.md b/docs/Posh/Parameters/Remove.md new file mode 100644 index 0000000..bf6d31f --- /dev/null +++ b/docs/Posh/Parameters/Remove.md @@ -0,0 +1,70 @@ +Posh.Parameters.Remove() +------------------------ + + + + +### Synopsis +Removes parameter default values. + + + +--- + + +### Description + +Removes the default values for a command. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Parameters.Remove("Out-Default") +``` + + +--- + + +### Parameters +#### **Command** + +The name of the command. + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |1 |false | + + + +#### **Parameter** + +The command parameters. +If this is a dictionary, each value will be used. +Otherwise, this will be treated as the name of the parameter. + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |2 |false | + + + + + +--- From 52510945d313a0a3a75e42f0d71d4e9edd25fc9f Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:46 +0000 Subject: [PATCH 067/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Parameters/SetDefault.md | 85 ++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 docs/Posh/Parameters/SetDefault.md diff --git a/docs/Posh/Parameters/SetDefault.md b/docs/Posh/Parameters/SetDefault.md new file mode 100644 index 0000000..c581993 --- /dev/null +++ b/docs/Posh/Parameters/SetDefault.md @@ -0,0 +1,85 @@ +Posh.Parameters.SetDefault() +---------------------------- + + + + +### Synopsis +Sets parameter default values. + + + +--- + + +### Description + +Sets the default value for a parameter. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Parameters.SetDefault("Out-Default", "OutVariable", 'LastOutput') +``` + + +--- + + +### Parameters +#### **Command** + +The name of the command. + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |1 |false | + + + +#### **Parameter** + +The command parameters. +If this is a dictionary, each value will be used. +Otherwise, this will be treated as the name of the parameter. + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |2 |false | + + + +#### **DefaultValue** + +The default value. + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |3 |false | + + + + + +--- From ecec32d8c179c1d9441bdd2266be96635aea5544 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:46 +0000 Subject: [PATCH 068/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Preset/Collection/README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docs/Posh/Preset/Collection/README.md diff --git a/docs/Posh/Preset/Collection/README.md b/docs/Posh/Preset/Collection/README.md new file mode 100644 index 0000000..d501876 --- /dev/null +++ b/docs/Posh/Preset/Collection/README.md @@ -0,0 +1,24 @@ +## Posh.Preset.Collection + + +## Posh Presets + +Posh Presets provide a way to store and apply presets for a variable. + +They are simply data files, where each key or property repesents a expression and it's value represents what it will be set to. + +Preset files can be .psd1, .json, or .clixml. + +To see what presets can do, use $Posh.Presets | Get-Member +### Script Methods + + +* [get_All](get_All.md) +* [get_CommandType](get_CommandType.md) +* [set_CommandType](set_CommandType.md) +* [get_Count](get_Count.md) +* [get_Module](get_Module.md) +* [set_Module](set_Module.md) +* [get_Path](get_Path.md) +* [set_Path](set_Path.md) +* [get_Random](get_Random.md) From a7f97e6b8641fcd521d420511326b7247273f04f Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:46 +0000 Subject: [PATCH 069/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Preset/Collection/get_All.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/Posh/Preset/Collection/get_All.md diff --git a/docs/Posh/Preset/Collection/get_All.md b/docs/Posh/Preset/Collection/get_All.md new file mode 100644 index 0000000..582140e --- /dev/null +++ b/docs/Posh/Preset/Collection/get_All.md @@ -0,0 +1,21 @@ +Posh.Preset.Collection.get_All() +-------------------------------- + + + + +### Synopsis +Gets all items in an extension collection. + + + +--- + + +### Description + +Gets all items in a collection of extended commands. + + + +--- From d43599a3df75da108bde624cf8c439618a49be74 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:46 +0000 Subject: [PATCH 070/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../Posh/Preset/Collection/get_CommandType.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docs/Posh/Preset/Collection/get_CommandType.md diff --git a/docs/Posh/Preset/Collection/get_CommandType.md b/docs/Posh/Preset/Collection/get_CommandType.md new file mode 100644 index 0000000..bcbd851 --- /dev/null +++ b/docs/Posh/Preset/Collection/get_CommandType.md @@ -0,0 +1,23 @@ +Posh.Preset.Collection.get_CommandType() +---------------------------------------- + + + + +### Synopsis +Gets an extension collection's CommandType + + + +--- + + +### Description + +Gets the extended CommandTypes(s) that are stored in an extension collection. + +CommandTypes can be defined in a module's manifest. + + + +--- From 7b102d4f4968920e33c3bc0b4b8c2b2b679ccae0 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:46 +0000 Subject: [PATCH 071/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../Posh/Preset/Collection/set_CommandType.md | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docs/Posh/Preset/Collection/set_CommandType.md diff --git a/docs/Posh/Preset/Collection/set_CommandType.md b/docs/Posh/Preset/Collection/set_CommandType.md new file mode 100644 index 0000000..4ae034b --- /dev/null +++ b/docs/Posh/Preset/Collection/set_CommandType.md @@ -0,0 +1,42 @@ +Posh.Preset.Collection.set_CommandType() +---------------------------------------- + + + + +### Synopsis +Sets an extension collection's command type + + + +--- + + +### Description + +Sets the extended command types in an extension collection. + + + +--- + + +### Parameters +#### **CommandType** + +The path. If this is empty all extended commands will be present in the collection + + + + + + +|Type |Required|Position|PipelineInput| +|------------|--------|--------|-------------| +|`[String[]]`|false |1 |false | + + + + + +--- From 29fbe10c2a922075bd03622167cb8f33cab318b1 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:46 +0000 Subject: [PATCH 072/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Preset/Collection/get_Count.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/Posh/Preset/Collection/get_Count.md diff --git a/docs/Posh/Preset/Collection/get_Count.md b/docs/Posh/Preset/Collection/get_Count.md new file mode 100644 index 0000000..eb9a677 --- /dev/null +++ b/docs/Posh/Preset/Collection/get_Count.md @@ -0,0 +1,21 @@ +Posh.Preset.Collection.get_Count() +---------------------------------- + + + + +### Synopsis +Gets the extension count. + + + +--- + + +### Description + +Gets the count of all extensions in a collection. + + + +--- From f2a1b50ad6ca49a02850c379c2677e71e7fa8c23 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:47 +0000 Subject: [PATCH 073/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Preset/Collection/get_Module.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/Posh/Preset/Collection/get_Module.md diff --git a/docs/Posh/Preset/Collection/get_Module.md b/docs/Posh/Preset/Collection/get_Module.md new file mode 100644 index 0000000..62d12a3 --- /dev/null +++ b/docs/Posh/Preset/Collection/get_Module.md @@ -0,0 +1,21 @@ +Posh.Preset.Collection.get_Module() +----------------------------------- + + + + +### Synopsis +Gets an extension collection's module + + + +--- + + +### Description + +Gets the module that defines extended types in an extension collection. + + + +--- From 4c3130f6c0c8a9373db41fcd41dec109d77c3bcb Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:47 +0000 Subject: [PATCH 074/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Preset/Collection/set_Module.md | 42 +++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docs/Posh/Preset/Collection/set_Module.md diff --git a/docs/Posh/Preset/Collection/set_Module.md b/docs/Posh/Preset/Collection/set_Module.md new file mode 100644 index 0000000..128bc10 --- /dev/null +++ b/docs/Posh/Preset/Collection/set_Module.md @@ -0,0 +1,42 @@ +Posh.Preset.Collection.set_Module() +----------------------------------- + + + + +### Synopsis +Sets an extension collection's module + + + +--- + + +### Description + +Sets the module that defines extended command types in an extension collection. + + + +--- + + +### Parameters +#### **Module** + +The module. + + + + + + +|Type |Required|Position|PipelineInput| +|----------------|--------|--------|-------------| +|`[PSModuleInfo]`|false |1 |false | + + + + + +--- From 845479c35126cfd8af74a499a3c769dd4a4c3970 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:47 +0000 Subject: [PATCH 075/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Preset/Collection/get_Path.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/Posh/Preset/Collection/get_Path.md diff --git a/docs/Posh/Preset/Collection/get_Path.md b/docs/Posh/Preset/Collection/get_Path.md new file mode 100644 index 0000000..7a76d0b --- /dev/null +++ b/docs/Posh/Preset/Collection/get_Path.md @@ -0,0 +1,21 @@ +Posh.Preset.Collection.get_Path() +--------------------------------- + + + + +### Synopsis +Gets an extension collection's Path + + + +--- + + +### Description + +Gets the Path(s) that store extensions in an extension collection. + + + +--- From 7d215a60e83b7a582d681e6e650c7ddbaa13ccf6 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:47 +0000 Subject: [PATCH 076/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Preset/Collection/set_Path.md | 42 +++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docs/Posh/Preset/Collection/set_Path.md diff --git a/docs/Posh/Preset/Collection/set_Path.md b/docs/Posh/Preset/Collection/set_Path.md new file mode 100644 index 0000000..5991174 --- /dev/null +++ b/docs/Posh/Preset/Collection/set_Path.md @@ -0,0 +1,42 @@ +Posh.Preset.Collection.set_Path() +--------------------------------- + + + + +### Synopsis +Sets an extension collection's path + + + +--- + + +### Description + +Sets the path that defines extended command types in an extension collection. + + + +--- + + +### Parameters +#### **Path** + +The path. If this is empty, only extensions that are functions or aliases will be found. + + + + + + +|Type |Required|Position|PipelineInput| +|------------|--------|--------|-------------| +|`[String[]]`|false |1 |false | + + + + + +--- From 609491c5271b6026ba28321b11b3a6c9d41956ce Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:47 +0000 Subject: [PATCH 077/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Preset/Collection/get_Random.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/Posh/Preset/Collection/get_Random.md diff --git a/docs/Posh/Preset/Collection/get_Random.md b/docs/Posh/Preset/Collection/get_Random.md new file mode 100644 index 0000000..9bcaebb --- /dev/null +++ b/docs/Posh/Preset/Collection/get_Random.md @@ -0,0 +1,21 @@ +Posh.Preset.Collection.get_Random() +----------------------------------- + + + + +### Synopsis +Gets a random extended command + + + +--- + + +### Description + +Gets a random extended command from an ExtensionCollection. + + + +--- From e12841f84deeec6501d32e999a5538f0de2c7adf Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:47 +0000 Subject: [PATCH 078/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Preset/Command/README.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 docs/Posh/Preset/Command/README.md diff --git a/docs/Posh/Preset/Command/README.md b/docs/Posh/Preset/Command/README.md new file mode 100644 index 0000000..aab6bd0 --- /dev/null +++ b/docs/Posh/Preset/Command/README.md @@ -0,0 +1,7 @@ +## Posh.Preset.Command + + +### Script Methods + + +* [Use](Use.md) From 1d178e12f03cd3813bdb4cc3fe74c9f8baea3327 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:47 +0000 Subject: [PATCH 079/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Preset/Command/Use.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docs/Posh/Preset/Command/Use.md diff --git a/docs/Posh/Preset/Command/Use.md b/docs/Posh/Preset/Command/Use.md new file mode 100644 index 0000000..68ccec3 --- /dev/null +++ b/docs/Posh/Preset/Command/Use.md @@ -0,0 +1,23 @@ +Posh.Preset.Command.Use() +------------------------- + + + + +### Synopsis +Uses a preset + + + +--- + + +### Description + +Uses or applies a Posh preset. + +Posh presets will take the data in a *.preset.* file and apply it to a variable. + + + +--- From 175bd4cef663504d3054e681f127d10f652b4418 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:47 +0000 Subject: [PATCH 080/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Profiles/README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docs/Posh/Profiles/README.md diff --git a/docs/Posh/Profiles/README.md b/docs/Posh/Profiles/README.md new file mode 100644 index 0000000..1038046 --- /dev/null +++ b/docs/Posh/Profiles/README.md @@ -0,0 +1,24 @@ +## Posh.Profiles + + +PowerShell has profiles! + +Profiles run whenever PowerShell is loaded. + +They're great if there's a module you want to always load, or a variable you always want defined. + +To see how to manipulate PowerShell profiles with Posh, use $posh.Profiles | Get-Member +### Script Methods + + +* [Add](Add.md) +* [ImportModule](ImportModule.md) +* [Matches](Matches.md) +* [New](New.md) +* [Remove](Remove.md) +* [RemoveModule](RemoveModule.md) +* [Replace](Replace.md) +* [get_Current](get_Current.md) +* [get_Directory](get_Directory.md) +* [get_File](get_File.md) +* [get_Files](get_Files.md) From 9eec115379dbf5851410c6e79216fc3b690bc66e Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:47 +0000 Subject: [PATCH 081/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Profiles/Add.md | 67 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 docs/Posh/Profiles/Add.md diff --git a/docs/Posh/Profiles/Add.md b/docs/Posh/Profiles/Add.md new file mode 100644 index 0000000..5da0cb9 --- /dev/null +++ b/docs/Posh/Profiles/Add.md @@ -0,0 +1,67 @@ +Posh.Profiles.Add() +------------------- + + + + +### Synopsis +Adds content to a profile + + + +--- + + +### Description + +Adds content to a PowerShell profile + + + +--- + + +### Parameters +#### **Content** + +The content to add to your profile. + + + + + + +|Type |Required|Position|PipelineInput| +|---------------|--------|--------|-------------| +|`[ScriptBlock]`|false |1 |false | + + + +#### **WhichProfile** + +Which profile should the content be added to? +The default is the current user's current host. + + + +Valid Values: + +* AllUsersAllHosts +* AllUsersCurrentHosts +* CurrentUserAllHosts +* CurrentUserCurrentHost + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |2 |false | + + + + + +--- From ab16582b94337720448b179fd140223ad47b5907 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:47 +0000 Subject: [PATCH 082/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Profiles/ImportModule.md | 79 ++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 docs/Posh/Profiles/ImportModule.md diff --git a/docs/Posh/Profiles/ImportModule.md b/docs/Posh/Profiles/ImportModule.md new file mode 100644 index 0000000..a54ea58 --- /dev/null +++ b/docs/Posh/Profiles/ImportModule.md @@ -0,0 +1,79 @@ +Posh.Profiles.ImportModule() +---------------------------- + + + + +### Synopsis +Imports a module in a profile + + + +--- + + +### Description + +Adds code to import a module in your profile. +This will ensure the module is loaded whenever you're running PowerShell. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Profile.ImportModule("Posh") +``` + + +--- + + +### Parameters +#### **Module** + +The name of the module to import. + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |1 |false | + + + +#### **WhichProfile** + +Which profile should the content be added to? +The default is the current user's current host. + + + +Valid Values: + +* AllUsersAllHosts +* AllUsersCurrentHosts +* CurrentUserAllHosts +* CurrentUserCurrentHost + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |2 |false | + + + + + +--- From eacd9e1240e74179dfdbb682e71fd6ca8910a7bc Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:47 +0000 Subject: [PATCH 083/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Profiles/Matches.md | 80 +++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 docs/Posh/Profiles/Matches.md diff --git a/docs/Posh/Profiles/Matches.md b/docs/Posh/Profiles/Matches.md new file mode 100644 index 0000000..bff2a27 --- /dev/null +++ b/docs/Posh/Profiles/Matches.md @@ -0,0 +1,80 @@ +Posh.Profiles.Matches() +----------------------- + + + + +### Synopsis +Matches patterns within profiles + + + +--- + + +### Description + +Matches a pattern within profile files. + +All places the pattern is found will be returned. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Profile.Matches("Posh") +``` + + +--- + + +### Parameters +#### **Pattern** + +The pattern to match. + + + + + + +|Type |Required|Position|PipelineInput| +|---------|--------|--------|-------------| +|`[Regex]`|false |1 |false | + + + +#### **WhichProfile** + +Which profile should the content be removed from? +The default is the current user's current host. + + + +Valid Values: + +* AllUsersAllHosts +* AllUsersCurrentHosts +* CurrentUserAllHosts +* CurrentUserCurrentHost + + + + + + +|Type |Required|Position|PipelineInput| +|------------|--------|--------|-------------| +|`[String[]]`|false |2 |false | + + + + + +--- From 57d4a446aa827c9fb86ddd2ff1eba8a83ad40c4d Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:47 +0000 Subject: [PATCH 084/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Profiles/New.md | 63 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 docs/Posh/Profiles/New.md diff --git a/docs/Posh/Profiles/New.md b/docs/Posh/Profiles/New.md new file mode 100644 index 0000000..6305324 --- /dev/null +++ b/docs/Posh/Profiles/New.md @@ -0,0 +1,63 @@ +Posh.Profiles.New() +------------------- + + + + +### Synopsis +Creates a new profile + + + +--- + + +### Description + +Creates a new profile, or returns an existing profile. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Profile.New() +``` + + +--- + + +### Parameters +#### **WhichProfile** + +Which profile should be created? +The default is the current user's current host. + + + +Valid Values: + +* AllUsersAllHosts +* AllUsersCurrentHosts +* CurrentUserAllHosts +* CurrentUserCurrentHost + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |1 |false | + + + + + +--- From aa83840d61cb81c312b44fa367366d27664a82bb Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:47 +0000 Subject: [PATCH 085/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Profiles/Remove.md | 69 ++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 docs/Posh/Profiles/Remove.md diff --git a/docs/Posh/Profiles/Remove.md b/docs/Posh/Profiles/Remove.md new file mode 100644 index 0000000..73bdbab --- /dev/null +++ b/docs/Posh/Profiles/Remove.md @@ -0,0 +1,69 @@ +Posh.Profiles.Remove() +---------------------- + + + + +### Synopsis +Removes content from a profile + + + +--- + + +### Description + +Removes content from a PowerShell profile. + + + +--- + + +### Parameters +#### **Content** + +The content to remove. +If the content is a regular expression pattern, any matches will be removed. +Otherwise, any case-insensitive occurances of the string will be removed. + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |1 |false | + + + +#### **WhichProfile** + +Which profile should the content be removed from? +The default is the current user's current host. + + + +Valid Values: + +* AllUsersAllHosts +* AllUsersCurrentHosts +* CurrentUserAllHosts +* CurrentUserCurrentHost + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |2 |false | + + + + + +--- From 6d6728d8bec9311bde8f2946b902a727cc422308 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:47 +0000 Subject: [PATCH 086/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Profiles/RemoveModule.md | 78 ++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 docs/Posh/Profiles/RemoveModule.md diff --git a/docs/Posh/Profiles/RemoveModule.md b/docs/Posh/Profiles/RemoveModule.md new file mode 100644 index 0000000..22c6e5f --- /dev/null +++ b/docs/Posh/Profiles/RemoveModule.md @@ -0,0 +1,78 @@ +Posh.Profiles.RemoveModule() +---------------------------- + + + + +### Synopsis +Remove a module from a profile + + + +--- + + +### Description + +Remove code that imports a module in your profile. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Profile.RemoveModule("Posh") +``` + + +--- + + +### Parameters +#### **Module** + +The name of the module to no longer import. + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |1 |false | + + + +#### **WhichProfile** + +Which profile should the content be added to? +The default is the current user's current host. + + + +Valid Values: + +* AllUsersAllHosts +* AllUsersCurrentHosts +* CurrentUserAllHosts +* CurrentUserCurrentHost + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |2 |false | + + + + + +--- From 61c47bd9d183ac4f99cd2d783f625c006fbe41a9 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:47 +0000 Subject: [PATCH 087/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Profiles/Replace.md | 86 +++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 docs/Posh/Profiles/Replace.md diff --git a/docs/Posh/Profiles/Replace.md b/docs/Posh/Profiles/Replace.md new file mode 100644 index 0000000..82200fe --- /dev/null +++ b/docs/Posh/Profiles/Replace.md @@ -0,0 +1,86 @@ +Posh.Profiles.Replace() +----------------------- + + + + +### Synopsis +Replaces content in a profile + + + +--- + + +### Description + +Replaces content in a PowerShell profile. + + + +--- + + +### Parameters +#### **Content** + +The content to replace. +If the content is a regular expression pattern, any matches will be replaced. +Otherwise, any case-insensitive occurances of the string will be replaced. + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |1 |false | + + + +#### **Replacement** + +The content to replace. +If content replaced was a regular expression, +this will be treated as a [Regular Expression substitution](https://learn.microsoft.com/en-us/dotnet/standard/base-types/substitutions-in-regular-expressions). + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |2 |false | + + + +#### **WhichProfile** + +Which profile should the content be removed from? +The default is the current user's current host. + + + +Valid Values: + +* AllUsersAllHosts +* AllUsersCurrentHosts +* CurrentUserAllHosts +* CurrentUserCurrentHost + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |3 |false | + + + + + +--- From 841d9885851e8f628633b8ee9588453485ea0f72 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:47 +0000 Subject: [PATCH 088/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Profiles/get_Current.md | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/Profiles/get_Current.md diff --git a/docs/Posh/Profiles/get_Current.md b/docs/Posh/Profiles/get_Current.md new file mode 100644 index 0000000..782480d --- /dev/null +++ b/docs/Posh/Profiles/get_Current.md @@ -0,0 +1,32 @@ +Posh.Profiles.get_Current() +--------------------------- + + + + +### Synopsis +Gets the current Profile + + + +--- + + +### Description + +Gets the current PowerShell Profile + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Profile.Current +``` + + +--- From 505126716245577f6ded3a6a57a5749071232284 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:48 +0000 Subject: [PATCH 089/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Profiles/get_Directory.md | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 docs/Posh/Profiles/get_Directory.md diff --git a/docs/Posh/Profiles/get_Directory.md b/docs/Posh/Profiles/get_Directory.md new file mode 100644 index 0000000..480f7dc --- /dev/null +++ b/docs/Posh/Profiles/get_Directory.md @@ -0,0 +1,41 @@ +Posh.Profiles.get_Directory() +----------------------------- + + + + +### Synopsis +Gets the profile directory + + + +--- + + +### Description + +Gets the PowerShell profile's directory. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Profile.Directory +``` + + +--- + + +### Notes +The Profile Directory is a wonderful place to store data. +( It is almost always writeable ) + + + +--- From 96ac7d7d0cd0121fcfb147f326d93e17caf15650 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:48 +0000 Subject: [PATCH 090/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Profiles/get_File.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/Profiles/get_File.md diff --git a/docs/Posh/Profiles/get_File.md b/docs/Posh/Profiles/get_File.md new file mode 100644 index 0000000..828160a --- /dev/null +++ b/docs/Posh/Profiles/get_File.md @@ -0,0 +1,32 @@ +Posh.Profiles.get_File() +------------------------ + + + + +### Synopsis +Gets the profile file + + + +--- + + +### Description + +Gets the profile file for the current user in the current host. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Profile.File +``` + + +--- From 2b454505ceb09a8f55a3eab74feac8d800ed71ad Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:48 +0000 Subject: [PATCH 091/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Profiles/get_Files.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/Profiles/get_Files.md diff --git a/docs/Posh/Profiles/get_Files.md b/docs/Posh/Profiles/get_Files.md new file mode 100644 index 0000000..31851a4 --- /dev/null +++ b/docs/Posh/Profiles/get_Files.md @@ -0,0 +1,32 @@ +Posh.Profiles.get_Files() +------------------------- + + + + +### Synopsis +Gets the profile files + + + +--- + + +### Description + +Gets the FileInfo objects for each profile that exists. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Profile.Files +``` + + +--- From 645cc5d06b31026fc2725ae1334a738cb4af19ff Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:48 +0000 Subject: [PATCH 092/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Prompt/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docs/Posh/Prompt/README.md diff --git a/docs/Posh/Prompt/README.md b/docs/Posh/Prompt/README.md new file mode 100644 index 0000000..9f6e98b --- /dev/null +++ b/docs/Posh/Prompt/README.md @@ -0,0 +1,22 @@ +## Posh.Prompt + + +`prompt` is the function that is called before PowerShell prompts for input. + +$Posh.Prompt allows you to customize the PowerShell prompt. + +Prompts are a cool way to customize your shell. + +Pipe $Posh.Prompt to Get-Member to see what it can do. +### Script Methods + + +* [Append](Append.md) +* [Clear](Clear.md) +* [Pop](Pop.md) +* [Prepend](Prepend.md) +* [Push](Push.md) +* [Replace](Replace.md) +* [Stringify](Stringify.md) +* [get_Current](get_Current.md) +* [set_Current](set_Current.md) From 1b141711a4123722317687b13f9e1a4444e36801 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:48 +0000 Subject: [PATCH 093/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Prompt/Append.md | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 docs/Posh/Prompt/Append.md diff --git a/docs/Posh/Prompt/Append.md b/docs/Posh/Prompt/Append.md new file mode 100644 index 0000000..6721c1e --- /dev/null +++ b/docs/Posh/Prompt/Append.md @@ -0,0 +1,39 @@ +Posh.Prompt.Append() +-------------------- + + + + +### Synopsis +Appends content to a stackable function + + + +--- + + +### Description + + +--- + + +### Parameters +#### **Value** + +The value to prepend. + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |1 |false | + + + + + +--- From d05cd30dab1e901a719044cfd164706f5fdb2c5b Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:48 +0000 Subject: [PATCH 094/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Prompt/Clear.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/Prompt/Clear.md diff --git a/docs/Posh/Prompt/Clear.md b/docs/Posh/Prompt/Clear.md new file mode 100644 index 0000000..02efe31 --- /dev/null +++ b/docs/Posh/Prompt/Clear.md @@ -0,0 +1,32 @@ +Posh.Prompt.Clear() +------------------- + + + + +### Synopsis +Clears a stackable function + + + +--- + + +### Description + +Clears a stackable function, resetting it to it's original state. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Prompt.Clear() +``` + + +--- From 85c4328b7cba2c9f075dce488a885ad2f4b55d36 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:48 +0000 Subject: [PATCH 095/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Prompt/Pop.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/Prompt/Pop.md diff --git a/docs/Posh/Prompt/Pop.md b/docs/Posh/Prompt/Pop.md new file mode 100644 index 0000000..95b2c73 --- /dev/null +++ b/docs/Posh/Prompt/Pop.md @@ -0,0 +1,32 @@ +Posh.Prompt.Pop() +----------------- + + + + +### Synopsis +Pops the last value from a function stack + + + +--- + + +### Description + +Pops the latest value from a function stack, such as the prompt. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Prompt.Pop() +``` + + +--- From e050cbee52cf7d2df37bff2a5ee7afaeb559cbca Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:48 +0000 Subject: [PATCH 096/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Prompt/Prepend.md | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 docs/Posh/Prompt/Prepend.md diff --git a/docs/Posh/Prompt/Prepend.md b/docs/Posh/Prompt/Prepend.md new file mode 100644 index 0000000..0227e25 --- /dev/null +++ b/docs/Posh/Prompt/Prepend.md @@ -0,0 +1,44 @@ +Posh.Prompt.Prepend() +--------------------- + + + + +### Synopsis +Prepends content to a stackable function. + + + +--- + + +### Description + +Prepends content to a stackable function. + +This takes the current entry and adds content to it's beginning. + + + +--- + + +### Parameters +#### **Value** + +The value to prepend. + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |1 |false | + + + + + +--- From 7779c215c6056af80497b5b796f2f50d9e8bbe29 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:48 +0000 Subject: [PATCH 097/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Prompt/Push.md | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 docs/Posh/Prompt/Push.md diff --git a/docs/Posh/Prompt/Push.md b/docs/Posh/Prompt/Push.md new file mode 100644 index 0000000..c4358c9 --- /dev/null +++ b/docs/Posh/Prompt/Push.md @@ -0,0 +1,45 @@ +Posh.Prompt.Push() +------------------ + + + + +### Synopsis +Pushes an entry into a stackable function + + + +--- + + +### Description + +Pushes an entry into a stackable function. + +This overwrites the existing entry, +and adds the previous value to the stack so it can be easily undone. + + + +--- + + +### Parameters +#### **Value** + +The new value for the function + + + + + + +|Type |Required|Position|PipelineInput| +|---------------|--------|--------|-------------| +|`[ScriptBlock]`|false |1 |false | + + + + + +--- From 5205018b166161f2beb5b4b19c03f1216918877b Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:48 +0000 Subject: [PATCH 098/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Prompt/Replace.md | 79 +++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 docs/Posh/Prompt/Replace.md diff --git a/docs/Posh/Prompt/Replace.md b/docs/Posh/Prompt/Replace.md new file mode 100644 index 0000000..b71612f --- /dev/null +++ b/docs/Posh/Prompt/Replace.md @@ -0,0 +1,79 @@ +Posh.Prompt.Replace() +--------------------- + + + + +### Synopsis +Replaces content within a function + + + +--- + + +### Description + +Replaces content within a stackable function, such as the prompt. + + + +--- + + +### Examples +Replace both ends of the prompt + +```PowerShell +$Posh.Prompt.Replace('PS ', 0x27d6,$true).Replace('>', 0x27d5, $true) +``` +> EXAMPLE 2 + +```PowerShell +$Posh.Prompt.Replace($( + if ($env:User) { + $env:User + } elseif ($env:UserName) { + $env:UserName + } +),'***') +``` + + +--- + + +### Parameters +#### **Replace** + +The content to replace + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |1 |false | + + + +#### **Value** + +The new value + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |2 |false | + + + + + +--- From 24bd664b9c72ea57e8d8d109540c5d9d6698af1e Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:48 +0000 Subject: [PATCH 099/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Prompt/Stringify.md | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 docs/Posh/Prompt/Stringify.md diff --git a/docs/Posh/Prompt/Stringify.md b/docs/Posh/Prompt/Stringify.md new file mode 100644 index 0000000..15c4842 --- /dev/null +++ b/docs/Posh/Prompt/Stringify.md @@ -0,0 +1,40 @@ +Posh.Prompt.Stringify() +----------------------- + + + + +### Synopsis +Converts into a stringified value + + + +--- + + +### Description + +Converts an item into a stringified value. + +This is used internally by stackable functions when they are prepending or appending. + + + +--- + + +### Parameters +#### **Prompt** + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |1 |false | + + + + + +--- From 67becbf2d67b3d65b1e101afd9db5e57fde6a41d Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:48 +0000 Subject: [PATCH 100/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Prompt/get_Current.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/Prompt/get_Current.md diff --git a/docs/Posh/Prompt/get_Current.md b/docs/Posh/Prompt/get_Current.md new file mode 100644 index 0000000..dc0df49 --- /dev/null +++ b/docs/Posh/Prompt/get_Current.md @@ -0,0 +1,32 @@ +Posh.Prompt.get_Current() +------------------------- + + + + +### Synopsis +Gets the value of a stackable function + + + +--- + + +### Description + +Gets the current value of a stackable function. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Prompt.Current +``` + + +--- From fc4c521eebefa58e78252a786642810b3957323c Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:48 +0000 Subject: [PATCH 101/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Prompt/set_Current.md | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 docs/Posh/Prompt/set_Current.md diff --git a/docs/Posh/Prompt/set_Current.md b/docs/Posh/Prompt/set_Current.md new file mode 100644 index 0000000..14b598f --- /dev/null +++ b/docs/Posh/Prompt/set_Current.md @@ -0,0 +1,34 @@ +Posh.Prompt.set_Current() +------------------------- + + + + +### Synopsis +Sets the current implementation of a function + + + +--- + + +### Description + +Sets the current imlementation of a stackable function. + +Stackable functions keep a stack of all prior entries for easy undo. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Prompt.Current = {"?"} +``` + + +--- From d798d472252ded043d8d070816853a70e3be1828 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:48 +0000 Subject: [PATCH 102/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Recommendation/README.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 docs/Posh/Recommendation/README.md diff --git a/docs/Posh/Recommendation/README.md b/docs/Posh/Recommendation/README.md new file mode 100644 index 0000000..9c9307b --- /dev/null +++ b/docs/Posh/Recommendation/README.md @@ -0,0 +1,7 @@ +## Posh.Recommendation + + +### Script Methods + + +* [Install](Install.md) From 90c5912e107758997d93152dcb7784244337a1e3 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:48 +0000 Subject: [PATCH 103/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Recommendation/Install.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/Posh/Recommendation/Install.md diff --git a/docs/Posh/Recommendation/Install.md b/docs/Posh/Recommendation/Install.md new file mode 100644 index 0000000..249e93e --- /dev/null +++ b/docs/Posh/Recommendation/Install.md @@ -0,0 +1,21 @@ +Posh.Recommendation.Install() +----------------------------- + + + + +### Synopsis +Installs the recommended module + + + +--- + + +### Description + +Uses Install-Module to install the recommended module. + + + +--- From f72a6d8f75203b7fab6c160a5648bf2072bb1456 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:49 +0000 Subject: [PATCH 104/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/RSS/Article/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 docs/Posh/RSS/Article/README.md diff --git a/docs/Posh/RSS/Article/README.md b/docs/Posh/RSS/Article/README.md new file mode 100644 index 0000000..4141288 --- /dev/null +++ b/docs/Posh/RSS/Article/README.md @@ -0,0 +1,8 @@ +## Posh.RSS.Article + + +### Script Methods + + +* [get_DatePublished](get_DatePublished.md) +* [get_Name](get_Name.md) From 0da24d7852eded75385217a3fd337bbd97078d8c Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:49 +0000 Subject: [PATCH 105/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/RSS/Article/get_DatePublished.md | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/RSS/Article/get_DatePublished.md diff --git a/docs/Posh/RSS/Article/get_DatePublished.md b/docs/Posh/RSS/Article/get_DatePublished.md new file mode 100644 index 0000000..b209529 --- /dev/null +++ b/docs/Posh/RSS/Article/get_DatePublished.md @@ -0,0 +1,32 @@ +Posh.RSS.Article.get_DatePublished() +------------------------------------ + + + + +### Synopsis +Gets an article's date published + + + +--- + + +### Description + +Gets the date an article was published, as a `[DateTime]`. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.News.Article.DatePublished +``` + + +--- From 10364ebbda60f2ee4220c005b458a41b6aebb3c3 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:49 +0000 Subject: [PATCH 106/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/RSS/Article/get_Name.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/Posh/RSS/Article/get_Name.md diff --git a/docs/Posh/RSS/Article/get_Name.md b/docs/Posh/RSS/Article/get_Name.md new file mode 100644 index 0000000..5d13efa --- /dev/null +++ b/docs/Posh/RSS/Article/get_Name.md @@ -0,0 +1,21 @@ +Posh.RSS.Article.get_Name() +--------------------------- + + + + +### Synopsis +Gets an article's name + + + +--- + + +### Description + +Gets the name of an article in an RSS feed. + + + +--- From d725864d68711ef7d7600fe274c944cd9cff6c22 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:49 +0000 Subject: [PATCH 107/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/RSS/Feed/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 docs/Posh/RSS/Feed/README.md diff --git a/docs/Posh/RSS/Feed/README.md b/docs/Posh/RSS/Feed/README.md new file mode 100644 index 0000000..1761dcf --- /dev/null +++ b/docs/Posh/RSS/Feed/README.md @@ -0,0 +1,8 @@ +## Posh.RSS.Feed + + +### Script Methods + + +* [get_Article](get_Article.md) +* [get_Recent](get_Recent.md) From f79b779598d4d67647d17069256593a910695109 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:49 +0000 Subject: [PATCH 108/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/RSS/Feed/get_Article.md | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 docs/Posh/RSS/Feed/get_Article.md diff --git a/docs/Posh/RSS/Feed/get_Article.md b/docs/Posh/RSS/Feed/get_Article.md new file mode 100644 index 0000000..b80de1b --- /dev/null +++ b/docs/Posh/RSS/Feed/get_Article.md @@ -0,0 +1,34 @@ +Posh.RSS.Feed.get_Article() +--------------------------- + + + + +### Synopsis +Gets articles in a feed. + + + +--- + + +### Description + +Gets the articles in a RSS feed. + +Articles will be cached for performance. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.News.Article # Get all articles from all feeds associated with Posh. +``` + + +--- From 504e623c5e4f8e04cf93e52a84d9fc5925124731 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:49 +0000 Subject: [PATCH 109/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/RSS/Feed/get_Recent.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/Posh/RSS/Feed/get_Recent.md diff --git a/docs/Posh/RSS/Feed/get_Recent.md b/docs/Posh/RSS/Feed/get_Recent.md new file mode 100644 index 0000000..018c62f --- /dev/null +++ b/docs/Posh/RSS/Feed/get_Recent.md @@ -0,0 +1,21 @@ +Posh.RSS.Feed.get_Recent() +-------------------------- + + + + +### Synopsis +Gets recent articles + + + +--- + + +### Description + +Gets recent articles in an RSS feed. + + + +--- From 02edd2922aa16f8f26ad156d951b3aeff7768686 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:49 +0000 Subject: [PATCH 110/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/RSS/FeedCollection/README.md | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 docs/Posh/RSS/FeedCollection/README.md diff --git a/docs/Posh/RSS/FeedCollection/README.md b/docs/Posh/RSS/FeedCollection/README.md new file mode 100644 index 0000000..16cdc09 --- /dev/null +++ b/docs/Posh/RSS/FeedCollection/README.md @@ -0,0 +1,38 @@ +## Posh.RSS.FeedCollection + + +Modules can put News in their module manifest. + +Posh provides a simple RSS reader to help you stay up to date. + +To view recent articles, use + +~~~PowerShell + $Posh.News.Recent +~~~ + +To view all feeds, use + +~~~PowerShell + $Posh.News.All +~~~ + +To view all articles from all feeds, use + +~~~PowerShell + $Posh.News.All.Article +~~~ + +To see a specific feed, use: + +~~~PowerShell + $Posh.News.Feed["PowerShell Team"] +~~~ +### Script Methods + + +* [get_Feed](get_Feed.md) +* [get_Random](get_Random.md) +* [get_Recent](get_Recent.md) +* [get_RecentDuration](get_RecentDuration.md) +* [set_RecentDuration](set_RecentDuration.md) From 96170914b942bcfbc533e7dda47bae50f8fa2770 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:49 +0000 Subject: [PATCH 111/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/RSS/FeedCollection/get_Feed.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/Posh/RSS/FeedCollection/get_Feed.md diff --git a/docs/Posh/RSS/FeedCollection/get_Feed.md b/docs/Posh/RSS/FeedCollection/get_Feed.md new file mode 100644 index 0000000..aeb9c9c --- /dev/null +++ b/docs/Posh/RSS/FeedCollection/get_Feed.md @@ -0,0 +1,21 @@ +Posh.RSS.FeedCollection.get_Feed() +---------------------------------- + + + + +### Synopsis +Gets feeds by name + + + +--- + + +### Description + +Gets all feeds in a collection by name. + + + +--- From 7449292647a9200a9f24c68a836e09f9fd836c2e Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:49 +0000 Subject: [PATCH 112/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/RSS/FeedCollection/get_Random.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/Posh/RSS/FeedCollection/get_Random.md diff --git a/docs/Posh/RSS/FeedCollection/get_Random.md b/docs/Posh/RSS/FeedCollection/get_Random.md new file mode 100644 index 0000000..cc80511 --- /dev/null +++ b/docs/Posh/RSS/FeedCollection/get_Random.md @@ -0,0 +1,21 @@ +Posh.RSS.FeedCollection.get_Random() +------------------------------------ + + + + +### Synopsis +Gets a random feed + + + +--- + + +### Description + +Gets a random feed from a feed collection + + + +--- From c625436f8c951c51c56430ddc054e826dff8287e Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:49 +0000 Subject: [PATCH 113/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/RSS/FeedCollection/get_Recent.md | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 docs/Posh/RSS/FeedCollection/get_Recent.md diff --git a/docs/Posh/RSS/FeedCollection/get_Recent.md b/docs/Posh/RSS/FeedCollection/get_Recent.md new file mode 100644 index 0000000..0fca332 --- /dev/null +++ b/docs/Posh/RSS/FeedCollection/get_Recent.md @@ -0,0 +1,29 @@ +Posh.RSS.FeedCollection.get_Recent() +------------------------------------ + + + + +### Synopsis +Gets all recent articles + + + +--- + + +### Description + +Gets all recent articles in a feed collection, sorted by date published. + + + +--- + + +### Notes +How "Recent" is defined in the a feed collection's `.RecentDuration` property. + + + +--- From cef44fc2c1f336186dd92d76a05958aec1072feb Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:49 +0000 Subject: [PATCH 114/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../RSS/FeedCollection/get_RecentDuration.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docs/Posh/RSS/FeedCollection/get_RecentDuration.md diff --git a/docs/Posh/RSS/FeedCollection/get_RecentDuration.md b/docs/Posh/RSS/FeedCollection/get_RecentDuration.md new file mode 100644 index 0000000..ed77137 --- /dev/null +++ b/docs/Posh/RSS/FeedCollection/get_RecentDuration.md @@ -0,0 +1,23 @@ +Posh.RSS.FeedCollection.get_RecentDuration() +-------------------------------------------- + + + + +### Synopsis +Gets the duration considered recent + + + +--- + + +### Description + +Gets the duration that is used to determine how recent an article is. + +By default, this is 45 days. + + + +--- From fc7cccf127d4a5de2f90e33b93720ab69a31e0e0 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:49 +0000 Subject: [PATCH 115/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../RSS/FeedCollection/set_RecentDuration.md | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 docs/Posh/RSS/FeedCollection/set_RecentDuration.md diff --git a/docs/Posh/RSS/FeedCollection/set_RecentDuration.md b/docs/Posh/RSS/FeedCollection/set_RecentDuration.md new file mode 100644 index 0000000..9937038 --- /dev/null +++ b/docs/Posh/RSS/FeedCollection/set_RecentDuration.md @@ -0,0 +1,38 @@ +Posh.RSS.FeedCollection.set_RecentDuration() +-------------------------------------------- + + + + +### Synopsis +Sets the duration considered recent + + + +--- + + +### Description + +Set the duration that is used to determine how recent an article is. + + + +--- + + +### Parameters +#### **RecentDuration** + + + + +|Type |Required|Position|PipelineInput| +|------------|--------|--------|-------------| +|`[TimeSpan]`|false |1 |false | + + + + + +--- From 8e95e037222301e45839840db1fbbdb202abdad6 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:49 +0000 Subject: [PATCH 116/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Stackable/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docs/Posh/Stackable/README.md diff --git a/docs/Posh/Stackable/README.md b/docs/Posh/Stackable/README.md new file mode 100644 index 0000000..58a5f92 --- /dev/null +++ b/docs/Posh/Stackable/README.md @@ -0,0 +1,15 @@ +## Posh.Stackable + + +### Script Methods + + +* [Append](Append.md) +* [Clear](Clear.md) +* [Pop](Pop.md) +* [Prepend](Prepend.md) +* [Push](Push.md) +* [Replace](Replace.md) +* [Stringify](Stringify.md) +* [get_Current](get_Current.md) +* [set_Current](set_Current.md) From e1b7427881add6fbf6fc2ba1280047ba8b5088d9 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:49 +0000 Subject: [PATCH 117/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Stackable/Append.md | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 docs/Posh/Stackable/Append.md diff --git a/docs/Posh/Stackable/Append.md b/docs/Posh/Stackable/Append.md new file mode 100644 index 0000000..2c445eb --- /dev/null +++ b/docs/Posh/Stackable/Append.md @@ -0,0 +1,39 @@ +Posh.Stackable.Append() +----------------------- + + + + +### Synopsis +Appends content to a stackable function + + + +--- + + +### Description + + +--- + + +### Parameters +#### **Value** + +The value to prepend. + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |1 |false | + + + + + +--- From 2bd7cc5a6348ebaecf317f20a357f947384aca40 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:49 +0000 Subject: [PATCH 118/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Stackable/Clear.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/Stackable/Clear.md diff --git a/docs/Posh/Stackable/Clear.md b/docs/Posh/Stackable/Clear.md new file mode 100644 index 0000000..eee2fab --- /dev/null +++ b/docs/Posh/Stackable/Clear.md @@ -0,0 +1,32 @@ +Posh.Stackable.Clear() +---------------------- + + + + +### Synopsis +Clears a stackable function + + + +--- + + +### Description + +Clears a stackable function, resetting it to it's original state. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Prompt.Clear() +``` + + +--- From 2784eb9d16d0275b49a102f5c9d8e8a7c5c28c1a Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:49 +0000 Subject: [PATCH 119/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Stackable/Pop.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/Stackable/Pop.md diff --git a/docs/Posh/Stackable/Pop.md b/docs/Posh/Stackable/Pop.md new file mode 100644 index 0000000..d71b448 --- /dev/null +++ b/docs/Posh/Stackable/Pop.md @@ -0,0 +1,32 @@ +Posh.Stackable.Pop() +-------------------- + + + + +### Synopsis +Pops the last value from a function stack + + + +--- + + +### Description + +Pops the latest value from a function stack, such as the prompt. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Prompt.Pop() +``` + + +--- From 035974c832a08ed8b37a3ea161b99dc80c17b1db Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:50 +0000 Subject: [PATCH 120/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Stackable/Prepend.md | 44 ++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 docs/Posh/Stackable/Prepend.md diff --git a/docs/Posh/Stackable/Prepend.md b/docs/Posh/Stackable/Prepend.md new file mode 100644 index 0000000..5afc190 --- /dev/null +++ b/docs/Posh/Stackable/Prepend.md @@ -0,0 +1,44 @@ +Posh.Stackable.Prepend() +------------------------ + + + + +### Synopsis +Prepends content to a stackable function. + + + +--- + + +### Description + +Prepends content to a stackable function. + +This takes the current entry and adds content to it's beginning. + + + +--- + + +### Parameters +#### **Value** + +The value to prepend. + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |1 |false | + + + + + +--- From 334687ad6a2829d9d68bbeb45493c4091632fcd3 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:50 +0000 Subject: [PATCH 121/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Stackable/Push.md | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 docs/Posh/Stackable/Push.md diff --git a/docs/Posh/Stackable/Push.md b/docs/Posh/Stackable/Push.md new file mode 100644 index 0000000..d065673 --- /dev/null +++ b/docs/Posh/Stackable/Push.md @@ -0,0 +1,45 @@ +Posh.Stackable.Push() +--------------------- + + + + +### Synopsis +Pushes an entry into a stackable function + + + +--- + + +### Description + +Pushes an entry into a stackable function. + +This overwrites the existing entry, +and adds the previous value to the stack so it can be easily undone. + + + +--- + + +### Parameters +#### **Value** + +The new value for the function + + + + + + +|Type |Required|Position|PipelineInput| +|---------------|--------|--------|-------------| +|`[ScriptBlock]`|false |1 |false | + + + + + +--- From a732714c711116fb2b4a5931a78898bfa87faf6e Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:50 +0000 Subject: [PATCH 122/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Stackable/Replace.md | 79 ++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 docs/Posh/Stackable/Replace.md diff --git a/docs/Posh/Stackable/Replace.md b/docs/Posh/Stackable/Replace.md new file mode 100644 index 0000000..43c0390 --- /dev/null +++ b/docs/Posh/Stackable/Replace.md @@ -0,0 +1,79 @@ +Posh.Stackable.Replace() +------------------------ + + + + +### Synopsis +Replaces content within a function + + + +--- + + +### Description + +Replaces content within a stackable function, such as the prompt. + + + +--- + + +### Examples +Replace both ends of the prompt + +```PowerShell +$Posh.Prompt.Replace('PS ', 0x27d6,$true).Replace('>', 0x27d5, $true) +``` +> EXAMPLE 2 + +```PowerShell +$Posh.Prompt.Replace($( + if ($env:User) { + $env:User + } elseif ($env:UserName) { + $env:UserName + } +),'***') +``` + + +--- + + +### Parameters +#### **Replace** + +The content to replace + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |1 |false | + + + +#### **Value** + +The new value + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |2 |false | + + + + + +--- From d502be02dd7cf5372953d9e840ca5781b04e9a85 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:50 +0000 Subject: [PATCH 123/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Stackable/Stringify.md | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 docs/Posh/Stackable/Stringify.md diff --git a/docs/Posh/Stackable/Stringify.md b/docs/Posh/Stackable/Stringify.md new file mode 100644 index 0000000..2ed16a1 --- /dev/null +++ b/docs/Posh/Stackable/Stringify.md @@ -0,0 +1,40 @@ +Posh.Stackable.Stringify() +-------------------------- + + + + +### Synopsis +Converts into a stringified value + + + +--- + + +### Description + +Converts an item into a stringified value. + +This is used internally by stackable functions when they are prepending or appending. + + + +--- + + +### Parameters +#### **Prompt** + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[Object]`|false |1 |false | + + + + + +--- From 6cb8c99d689563b3d68d802ed384c2adf925116f Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:50 +0000 Subject: [PATCH 124/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Stackable/get_Current.md | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/Stackable/get_Current.md diff --git a/docs/Posh/Stackable/get_Current.md b/docs/Posh/Stackable/get_Current.md new file mode 100644 index 0000000..a394743 --- /dev/null +++ b/docs/Posh/Stackable/get_Current.md @@ -0,0 +1,32 @@ +Posh.Stackable.get_Current() +---------------------------- + + + + +### Synopsis +Gets the value of a stackable function + + + +--- + + +### Description + +Gets the current value of a stackable function. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Prompt.Current +``` + + +--- From c7cf20a362b95eee9ff0f8af0a5f75662c8f66d8 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:50 +0000 Subject: [PATCH 125/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/Posh/Stackable/set_Current.md | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 docs/Posh/Stackable/set_Current.md diff --git a/docs/Posh/Stackable/set_Current.md b/docs/Posh/Stackable/set_Current.md new file mode 100644 index 0000000..9fac4ca --- /dev/null +++ b/docs/Posh/Stackable/set_Current.md @@ -0,0 +1,34 @@ +Posh.Stackable.set_Current() +---------------------------- + + + + +### Synopsis +Sets the current implementation of a function + + + +--- + + +### Description + +Sets the current imlementation of a stackable function. + +Stackable functions keep a stack of all prior entries for easy undo. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Prompt.Current = {"?"} +``` + + +--- From 13c44f478de2a34e9807af9b2d7acd486d5b1660 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:50 +0000 Subject: [PATCH 126/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../Automation/PSModuleInfo/README.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docs/System/Management/Automation/PSModuleInfo/README.md diff --git a/docs/System/Management/Automation/PSModuleInfo/README.md b/docs/System/Management/Automation/PSModuleInfo/README.md new file mode 100644 index 0000000..bb511a5 --- /dev/null +++ b/docs/System/Management/Automation/PSModuleInfo/README.md @@ -0,0 +1,23 @@ +## System.Management.Automation.PSModuleInfo + + +### Script Methods + + +* [LinkList](LinkList.md) +* [get_Demo](get_Demo.md) +* [get_Discussion](get_Discussion.md) +* [get_Issue](get_Issue.md) +* [get_Link](get_Link.md) +* [get_Logo](get_Logo.md) +* [get_ModuleProfile](get_ModuleProfile.md) +* [get_ModuleProfiles](get_ModuleProfiles.md) +* [get_News](get_News.md) +* [get_Presentation](get_Presentation.md) +* [get_Preset](get_Preset.md) +* [get_README](get_README.md) +* [get_Recommendation](get_Recommendation.md) +* [get_Screenshot](get_Screenshot.md) +* [get_Test](get_Test.md) +* [get_Tip](get_Tip.md) +* [get_Video](get_Video.md) From cdf61b960ab8022386aabb2eb69b22df2e403546 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:50 +0000 Subject: [PATCH 127/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../Automation/PSModuleInfo/LinkList.md | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 docs/System/Management/Automation/PSModuleInfo/LinkList.md diff --git a/docs/System/Management/Automation/PSModuleInfo/LinkList.md b/docs/System/Management/Automation/PSModuleInfo/LinkList.md new file mode 100644 index 0000000..3792ad1 --- /dev/null +++ b/docs/System/Management/Automation/PSModuleInfo/LinkList.md @@ -0,0 +1,89 @@ +System.Management.Automation.PSModuleInfo.LinkList() +---------------------------------------------------- + + + + +### Synopsis +Returns a link list. + + + +--- + + +### Description + +Returns a list of links from one or more properties in a module's manifest. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.LinkList(@( + $this.PrivateData.Screenshot + $this.PrivateData.Screenshots + $this.PrivateData.PSData.Screenshot + $this.PrivateData.PSData.Screenshots +), "Posh.Module.Screenshot") +``` + + +--- + + +### Parameters +#### **InputObject** + +One or more inputs to the list. + + + + + + +|Type |Required|Position|PipelineInput| +|--------------|--------|--------|-------------| +|`[PSObject[]]`|false |1 |false | + + + +#### **PSTypeName** + +The name of each item in the list. + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |2 |false | + + + +#### **CollectionTypeName** + +The name of a collection. +If this is provided, a collection containing all items will be returned. + + + + + + +|Type |Required|Position|PipelineInput| +|----------|--------|--------|-------------| +|`[String]`|false |3 |false | + + + + + +--- From 3f91f5fc626c7b6ecb15e4a51a11116765892aa6 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:50 +0000 Subject: [PATCH 128/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../Automation/PSModuleInfo/get_Demo.md | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docs/System/Management/Automation/PSModuleInfo/get_Demo.md diff --git a/docs/System/Management/Automation/PSModuleInfo/get_Demo.md b/docs/System/Management/Automation/PSModuleInfo/get_Demo.md new file mode 100644 index 0000000..4079f8f --- /dev/null +++ b/docs/System/Management/Automation/PSModuleInfo/get_Demo.md @@ -0,0 +1,42 @@ +System.Management.Automation.PSModuleInfo.get_Demo() +---------------------------------------------------- + + + + +### Synopsis +Gets module demos + + + +--- + + +### Description + +Gets demo files related to a module. + + + +--- + + +### Related Links +* [https://github.com/StartAutomating/ShowDemo](https://github.com/StartAutomating/ShowDemo) + + + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Demos +``` + + +--- From 182a8cc8b66c2de63301e2a8e91eaaa34275e4bc Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:50 +0000 Subject: [PATCH 129/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../Automation/PSModuleInfo/get_Discussion.md | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 docs/System/Management/Automation/PSModuleInfo/get_Discussion.md diff --git a/docs/System/Management/Automation/PSModuleInfo/get_Discussion.md b/docs/System/Management/Automation/PSModuleInfo/get_Discussion.md new file mode 100644 index 0000000..81ca97b --- /dev/null +++ b/docs/System/Management/Automation/PSModuleInfo/get_Discussion.md @@ -0,0 +1,29 @@ +System.Management.Automation.PSModuleInfo.get_Discussion() +---------------------------------------------------------- + + + + +### Synopsis +Gets a module's discussions URL. + + + +--- + + +### Description + +Gets the discussions URL related to a module. + + + +--- + + +### Notes +The Module must set it's ProjectURI, and it must be on GitHub, or this will return nothing. + + + +--- From 7e7fec91de5c459298eafe25c5b404d2d9b8efec Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:50 +0000 Subject: [PATCH 130/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../Automation/PSModuleInfo/get_Issue.md | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 docs/System/Management/Automation/PSModuleInfo/get_Issue.md diff --git a/docs/System/Management/Automation/PSModuleInfo/get_Issue.md b/docs/System/Management/Automation/PSModuleInfo/get_Issue.md new file mode 100644 index 0000000..b935511 --- /dev/null +++ b/docs/System/Management/Automation/PSModuleInfo/get_Issue.md @@ -0,0 +1,29 @@ +System.Management.Automation.PSModuleInfo.get_Issue() +----------------------------------------------------- + + + + +### Synopsis +Gets a module's issue URL. + + + +--- + + +### Description + +Gets the issues URL related to a module. + + + +--- + + +### Notes +The Module must set it's ProjectURI, and it must be on GitHub, or this will return nothing. + + + +--- From 220b61ca1b37a2de3ff3dc54e02a9a0fcc4a82cb Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:50 +0000 Subject: [PATCH 131/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../Automation/PSModuleInfo/get_Link.md | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/System/Management/Automation/PSModuleInfo/get_Link.md diff --git a/docs/System/Management/Automation/PSModuleInfo/get_Link.md b/docs/System/Management/Automation/PSModuleInfo/get_Link.md new file mode 100644 index 0000000..46039d0 --- /dev/null +++ b/docs/System/Management/Automation/PSModuleInfo/get_Link.md @@ -0,0 +1,32 @@ +System.Management.Automation.PSModuleInfo.get_Link() +---------------------------------------------------- + + + + +### Synopsis +Gets Module Links + + + +--- + + +### Description + +Lists hyperlinks from this module. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Links +``` + + +--- From e0dab8e840f88bab7eb6c2c7f0995aec5a9d57be Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:50 +0000 Subject: [PATCH 132/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../Automation/PSModuleInfo/get_Logo.md | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/System/Management/Automation/PSModuleInfo/get_Logo.md diff --git a/docs/System/Management/Automation/PSModuleInfo/get_Logo.md b/docs/System/Management/Automation/PSModuleInfo/get_Logo.md new file mode 100644 index 0000000..9c379f2 --- /dev/null +++ b/docs/System/Management/Automation/PSModuleInfo/get_Logo.md @@ -0,0 +1,32 @@ +System.Management.Automation.PSModuleInfo.get_Logo() +---------------------------------------------------- + + + + +### Synopsis +Gets Module Logos + + + +--- + + +### Description + +Lists logos for this module. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Logos +``` + + +--- From d64680c34748bc610fdb3de2ef23c0515004be17 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:50 +0000 Subject: [PATCH 133/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../PSModuleInfo/get_ModuleProfile.md | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docs/System/Management/Automation/PSModuleInfo/get_ModuleProfile.md diff --git a/docs/System/Management/Automation/PSModuleInfo/get_ModuleProfile.md b/docs/System/Management/Automation/PSModuleInfo/get_ModuleProfile.md new file mode 100644 index 0000000..1d49529 --- /dev/null +++ b/docs/System/Management/Automation/PSModuleInfo/get_ModuleProfile.md @@ -0,0 +1,25 @@ +System.Management.Automation.PSModuleInfo.get_ModuleProfile() +------------------------------------------------------------- + + + + +### Synopsis +Gets a Module's Profile + + + +--- + + +### Description + +Gets the profile file associated with the module. + +Any module can have a file within the same directory as $profile, named `$($this.Name).profile.ps1`. + +This file may be loaded when the module loads, or anytime thereafter. + + + +--- From 9941aed0b631e87be08b0b958bb2e570f308c0cb Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:50 +0000 Subject: [PATCH 134/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../PSModuleInfo/get_ModuleProfiles.md | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docs/System/Management/Automation/PSModuleInfo/get_ModuleProfiles.md diff --git a/docs/System/Management/Automation/PSModuleInfo/get_ModuleProfiles.md b/docs/System/Management/Automation/PSModuleInfo/get_ModuleProfiles.md new file mode 100644 index 0000000..1ea5ac8 --- /dev/null +++ b/docs/System/Management/Automation/PSModuleInfo/get_ModuleProfiles.md @@ -0,0 +1,25 @@ +System.Management.Automation.PSModuleInfo.get_ModuleProfiles() +-------------------------------------------------------------- + + + + +### Synopsis +Gets a Module's Profiles + + + +--- + + +### Description + +Gets the profile files associated with the module. + +Any module can have a file within the same directory any valid $profile location, named `$($this.Name).profile.ps1`. + +This file may be loaded when the module loads, or anytime thereafter. + + + +--- From af4848fd9f02d7d9e709eb7b8d1803bd0d18730f Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:51 +0000 Subject: [PATCH 135/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../Automation/PSModuleInfo/get_News.md | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/System/Management/Automation/PSModuleInfo/get_News.md diff --git a/docs/System/Management/Automation/PSModuleInfo/get_News.md b/docs/System/Management/Automation/PSModuleInfo/get_News.md new file mode 100644 index 0000000..a38b7da --- /dev/null +++ b/docs/System/Management/Automation/PSModuleInfo/get_News.md @@ -0,0 +1,32 @@ +System.Management.Automation.PSModuleInfo.get_News() +---------------------------------------------------- + + + + +### Synopsis +Gets a Module's News + + + +--- + + +### Description + +Lists RSS NewsFeeds from this module + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.News +``` + + +--- From ecfce199b28c8a3776178246409172127cfba50c Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:51 +0000 Subject: [PATCH 136/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../PSModuleInfo/get_Presentation.md | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/System/Management/Automation/PSModuleInfo/get_Presentation.md diff --git a/docs/System/Management/Automation/PSModuleInfo/get_Presentation.md b/docs/System/Management/Automation/PSModuleInfo/get_Presentation.md new file mode 100644 index 0000000..722da48 --- /dev/null +++ b/docs/System/Management/Automation/PSModuleInfo/get_Presentation.md @@ -0,0 +1,21 @@ +System.Management.Automation.PSModuleInfo.get_Presentation() +------------------------------------------------------------ + + + + +### Synopsis +Gets module presentations + + + +--- + + +### Description + +Gets PowerPoint presentations and templates located within a PowerShell module. + + + +--- From e8f4814629f4d6f8094327743d23c43af6f9f8d4 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:51 +0000 Subject: [PATCH 137/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../Automation/PSModuleInfo/get_Preset.md | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 docs/System/Management/Automation/PSModuleInfo/get_Preset.md diff --git a/docs/System/Management/Automation/PSModuleInfo/get_Preset.md b/docs/System/Management/Automation/PSModuleInfo/get_Preset.md new file mode 100644 index 0000000..aef4199 --- /dev/null +++ b/docs/System/Management/Automation/PSModuleInfo/get_Preset.md @@ -0,0 +1,29 @@ +System.Management.Automation.PSModuleInfo.get_Preset() +------------------------------------------------------ + + + + +### Synopsis +Get's a module's presets + + + +--- + + +### Description + +Gets presets from a module. + +Any module can contain `*.preset(s)` files, of the extensions: + +* .psd1 +* .json +* .clixml + +The collection of presets can be accessed in a Module's .Preset(s) properties + + + +--- From 28a86d99005461817c28a1c02ecad5cfd06402d5 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:51 +0000 Subject: [PATCH 138/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../Automation/PSModuleInfo/get_README.md | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/System/Management/Automation/PSModuleInfo/get_README.md diff --git a/docs/System/Management/Automation/PSModuleInfo/get_README.md b/docs/System/Management/Automation/PSModuleInfo/get_README.md new file mode 100644 index 0000000..749c231 --- /dev/null +++ b/docs/System/Management/Automation/PSModuleInfo/get_README.md @@ -0,0 +1,21 @@ +System.Management.Automation.PSModuleInfo.get_README() +------------------------------------------------------ + + + + +### Synopsis +Gets a Module's README + + + +--- + + +### Description + +Gets the content of README.md file located at the module root. + + + +--- From a56aecede0736071111ec6bbf1351578261fb8da Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:51 +0000 Subject: [PATCH 139/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../PSModuleInfo/get_Recommendation.md | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docs/System/Management/Automation/PSModuleInfo/get_Recommendation.md diff --git a/docs/System/Management/Automation/PSModuleInfo/get_Recommendation.md b/docs/System/Management/Automation/PSModuleInfo/get_Recommendation.md new file mode 100644 index 0000000..a89ab6e --- /dev/null +++ b/docs/System/Management/Automation/PSModuleInfo/get_Recommendation.md @@ -0,0 +1,37 @@ +System.Management.Automation.PSModuleInfo.get_Recommendation() +-------------------------------------------------------------- + + + + +### Synopsis +Gets Module Recommendations + + + +--- + + +### Description + +Lists other modules this module recommends. + + + +--- + + +### Examples +$Posh.Recommends gets every loaded module's recommendations. + +```PowerShell +$posh.Recommends +``` +> EXAMPLE 2 + +```PowerShell +$posh.Recommendations +``` + + +--- From c1d35aefeef4ed4957ef77d24f50e184444a1b7e Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:51 +0000 Subject: [PATCH 140/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../Automation/PSModuleInfo/get_Screenshot.md | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/System/Management/Automation/PSModuleInfo/get_Screenshot.md diff --git a/docs/System/Management/Automation/PSModuleInfo/get_Screenshot.md b/docs/System/Management/Automation/PSModuleInfo/get_Screenshot.md new file mode 100644 index 0000000..6375942 --- /dev/null +++ b/docs/System/Management/Automation/PSModuleInfo/get_Screenshot.md @@ -0,0 +1,32 @@ +System.Management.Automation.PSModuleInfo.get_Screenshot() +---------------------------------------------------------- + + + + +### Synopsis +Gets Module Screenshots + + + +--- + + +### Description + +Lists screenshots from this module. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Screenshots +``` + + +--- From e238e6ea083d1e093195d65ef3574e96838cca01 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:51 +0000 Subject: [PATCH 141/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../Automation/PSModuleInfo/get_Test.md | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/System/Management/Automation/PSModuleInfo/get_Test.md diff --git a/docs/System/Management/Automation/PSModuleInfo/get_Test.md b/docs/System/Management/Automation/PSModuleInfo/get_Test.md new file mode 100644 index 0000000..e4ac872 --- /dev/null +++ b/docs/System/Management/Automation/PSModuleInfo/get_Test.md @@ -0,0 +1,21 @@ +System.Management.Automation.PSModuleInfo.get_Test() +---------------------------------------------------- + + + + +### Synopsis +Gets module tests + + + +--- + + +### Description + +Gets Pester Tests located within a module. + + + +--- From 287cb3b1d0cdce7ac0e3ddc15b6d64941aa5675b Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:51 +0000 Subject: [PATCH 142/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../Automation/PSModuleInfo/get_Tip.md | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/System/Management/Automation/PSModuleInfo/get_Tip.md diff --git a/docs/System/Management/Automation/PSModuleInfo/get_Tip.md b/docs/System/Management/Automation/PSModuleInfo/get_Tip.md new file mode 100644 index 0000000..a7938cf --- /dev/null +++ b/docs/System/Management/Automation/PSModuleInfo/get_Tip.md @@ -0,0 +1,32 @@ +System.Management.Automation.PSModuleInfo.get_Tip() +--------------------------------------------------- + + + + +### Synopsis +Get's a module's tips + + + +--- + + +### Description + +Gets tips and tricks from a module. + +Any module can contain `*.tip(s)` or `*.trick(s)` files, of the extensions: + +* .md +* .txt +* .ps1 +* .psd1 +* .json +* .clixml + +The collection of tips can be accessed in a Module's .Tip(s) or .Trick(s) properties + + + +--- From f8110cb816304102d92710b36510137af404c483 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:51 +0000 Subject: [PATCH 143/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- .../Automation/PSModuleInfo/get_Video.md | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/System/Management/Automation/PSModuleInfo/get_Video.md diff --git a/docs/System/Management/Automation/PSModuleInfo/get_Video.md b/docs/System/Management/Automation/PSModuleInfo/get_Video.md new file mode 100644 index 0000000..417a646 --- /dev/null +++ b/docs/System/Management/Automation/PSModuleInfo/get_Video.md @@ -0,0 +1,32 @@ +System.Management.Automation.PSModuleInfo.get_Video() +----------------------------------------------------- + + + + +### Synopsis +Gets Module Videos + + + +--- + + +### Description + +Lists videos about this module. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Videos +``` + + +--- From c5469bbcda5104f15f6121bbdb7e6aeecac882c7 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:51 +0000 Subject: [PATCH 144/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/System/TimeZoneInfo/README.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 docs/System/TimeZoneInfo/README.md diff --git a/docs/System/TimeZoneInfo/README.md b/docs/System/TimeZoneInfo/README.md new file mode 100644 index 0000000..7c9ef6d --- /dev/null +++ b/docs/System/TimeZoneInfo/README.md @@ -0,0 +1,7 @@ +## System.TimeZoneInfo + + +### Script Methods + + +* [get_LocalTime](get_LocalTime.md) From da0bd52f5439f22e49767e808f309ddd246a7b96 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 02:07:51 +0000 Subject: [PATCH 145/224] Adding Posh.NET.get_Type(s) (Fixes #285) --- docs/System/TimeZoneInfo/get_LocalTime.md | 37 +++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docs/System/TimeZoneInfo/get_LocalTime.md diff --git a/docs/System/TimeZoneInfo/get_LocalTime.md b/docs/System/TimeZoneInfo/get_LocalTime.md new file mode 100644 index 0000000..6f1fed4 --- /dev/null +++ b/docs/System/TimeZoneInfo/get_LocalTime.md @@ -0,0 +1,37 @@ +System.TimeZoneInfo.get_LocalTime() +----------------------------------- + + + + +### Synopsis +Gets the local time + + + +--- + + +### Description + +Gets the local time for a timezone. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +Get-TimeZone -ListAvailable +``` +> EXAMPLE 2 + +```PowerShell +Get-TimeZone | Select LocalTime +``` + + +--- From 0f0d4dbdcfc2be857918d3031f91353182f75f36 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Tue, 26 Sep 2023 09:17:38 -0700 Subject: [PATCH 146/224] Clearing old doc files --- docs/Posh.Recommendation.Install.md | 21 ---------------- ...tomation.PSModuleInfo.get_ModuleProfile.md | 25 ------------------- ...omation.PSModuleInfo.get_ModuleProfiles.md | 25 ------------------- ...utomation.PSModuleInfo.get_Presentation.md | 21 ---------------- 4 files changed, 92 deletions(-) delete mode 100644 docs/Posh.Recommendation.Install.md delete mode 100644 docs/System.Management.Automation.PSModuleInfo.get_ModuleProfile.md delete mode 100644 docs/System.Management.Automation.PSModuleInfo.get_ModuleProfiles.md delete mode 100644 docs/System.Management.Automation.PSModuleInfo.get_Presentation.md diff --git a/docs/Posh.Recommendation.Install.md b/docs/Posh.Recommendation.Install.md deleted file mode 100644 index 249e93e..0000000 --- a/docs/Posh.Recommendation.Install.md +++ /dev/null @@ -1,21 +0,0 @@ -Posh.Recommendation.Install() ------------------------------ - - - - -### Synopsis -Installs the recommended module - - - ---- - - -### Description - -Uses Install-Module to install the recommended module. - - - ---- diff --git a/docs/System.Management.Automation.PSModuleInfo.get_ModuleProfile.md b/docs/System.Management.Automation.PSModuleInfo.get_ModuleProfile.md deleted file mode 100644 index 1d49529..0000000 --- a/docs/System.Management.Automation.PSModuleInfo.get_ModuleProfile.md +++ /dev/null @@ -1,25 +0,0 @@ -System.Management.Automation.PSModuleInfo.get_ModuleProfile() -------------------------------------------------------------- - - - - -### Synopsis -Gets a Module's Profile - - - ---- - - -### Description - -Gets the profile file associated with the module. - -Any module can have a file within the same directory as $profile, named `$($this.Name).profile.ps1`. - -This file may be loaded when the module loads, or anytime thereafter. - - - ---- diff --git a/docs/System.Management.Automation.PSModuleInfo.get_ModuleProfiles.md b/docs/System.Management.Automation.PSModuleInfo.get_ModuleProfiles.md deleted file mode 100644 index 1ea5ac8..0000000 --- a/docs/System.Management.Automation.PSModuleInfo.get_ModuleProfiles.md +++ /dev/null @@ -1,25 +0,0 @@ -System.Management.Automation.PSModuleInfo.get_ModuleProfiles() --------------------------------------------------------------- - - - - -### Synopsis -Gets a Module's Profiles - - - ---- - - -### Description - -Gets the profile files associated with the module. - -Any module can have a file within the same directory any valid $profile location, named `$($this.Name).profile.ps1`. - -This file may be loaded when the module loads, or anytime thereafter. - - - ---- diff --git a/docs/System.Management.Automation.PSModuleInfo.get_Presentation.md b/docs/System.Management.Automation.PSModuleInfo.get_Presentation.md deleted file mode 100644 index 722da48..0000000 --- a/docs/System.Management.Automation.PSModuleInfo.get_Presentation.md +++ /dev/null @@ -1,21 +0,0 @@ -System.Management.Automation.PSModuleInfo.get_Presentation() ------------------------------------------------------------- - - - - -### Synopsis -Gets module presentations - - - ---- - - -### Description - -Gets PowerPoint presentations and templates located within a PowerShell module. - - - ---- From 955ffad40adf7ade9299617c0fbadaf817039ef7 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Tue, 26 Sep 2023 09:47:29 -0700 Subject: [PATCH 147/224] Adding Posh.NET.get_Public (Fixes #289) --- Types/Posh.NET/get_Public.ps1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Types/Posh.NET/get_Public.ps1 diff --git a/Types/Posh.NET/get_Public.ps1 b/Types/Posh.NET/get_Public.ps1 new file mode 100644 index 0000000..1ba574f --- /dev/null +++ b/Types/Posh.NET/get_Public.ps1 @@ -0,0 +1,13 @@ +<# +.SYNOPSIS + Gets public types +.DESCRIPTION + Gets all currently loaded public types. +.EXAMPLE + $Posh.Net.Public +#> +foreach ($type in $this.Type) { + if ($type.IsPublic) { + $type + } +} \ No newline at end of file From da6767b73fa360c9be52b3d8df2ebb94e5109de1 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 16:48:54 +0000 Subject: [PATCH 148/224] Adding Posh.NET.get_Public (Fixes #289) --- Posh.types.ps1xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index e4d00f2..8e31ea2 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -1707,6 +1707,24 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. [AppDomain]::CurrentDomain.GetAssemblies() + + Public + + <# +.SYNOPSIS + Gets public types +.DESCRIPTION + Gets all currently loaded public types. +.EXAMPLE + $Posh.Net.Public +#> +foreach ($type in $this.Type) { + if ($type.IsPublic) { + $type + } +} + + Type From cbc35ad0c6e5753f511ce020eeeb99d01e380888 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 16:49:12 +0000 Subject: [PATCH 149/224] Adding Posh.NET.get_Public (Fixes #289) --- docs/Posh/NET/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Posh/NET/README.md b/docs/Posh/NET/README.md index c4aa1c6..9ae6030 100644 --- a/docs/Posh/NET/README.md +++ b/docs/Posh/NET/README.md @@ -5,4 +5,5 @@ * [get_Assembly](get_Assembly.md) +* [get_Public](get_Public.md) * [get_Type](get_Type.md) From 836742da53956574a4122bfdb20dd14f8bd14313 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 16:49:12 +0000 Subject: [PATCH 150/224] Adding Posh.NET.get_Public (Fixes #289) --- docs/Posh/NET/get_Public.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/NET/get_Public.md diff --git a/docs/Posh/NET/get_Public.md b/docs/Posh/NET/get_Public.md new file mode 100644 index 0000000..ebe9eda --- /dev/null +++ b/docs/Posh/NET/get_Public.md @@ -0,0 +1,32 @@ +Posh.NET.get_Public() +--------------------- + + + + +### Synopsis +Gets public types + + + +--- + + +### Description + +Gets all currently loaded public types. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Net.Public +``` + + +--- From 5d2ee6a2192976a3239a01b7f199b4c99e93c139 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Tue, 26 Sep 2023 09:50:17 -0700 Subject: [PATCH 151/224] Adding Posh.NET.get_Private (Fixes #290) --- Types/Posh.NET/get_Private.ps1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Types/Posh.NET/get_Private.ps1 diff --git a/Types/Posh.NET/get_Private.ps1 b/Types/Posh.NET/get_Private.ps1 new file mode 100644 index 0000000..76536ee --- /dev/null +++ b/Types/Posh.NET/get_Private.ps1 @@ -0,0 +1,13 @@ +<# +.SYNOPSIS + Gets private types +.DESCRIPTION + Gets all currently loaded private types +.EXAMPLE + $Posh.Net.Private +#> +foreach ($type in $this.Type) { + if ($type.IsNotPublic) { + $type + } +} \ No newline at end of file From 2afd48431f671d785350f6dae1d579dfc1143c3b Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 16:51:51 +0000 Subject: [PATCH 152/224] Adding Posh.NET.get_Private (Fixes #290) --- Posh.types.ps1xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index 8e31ea2..959c71e 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -1707,6 +1707,24 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. [AppDomain]::CurrentDomain.GetAssemblies() + + Private + + <# +.SYNOPSIS + Gets private types +.DESCRIPTION + Gets all currently loaded private types +.EXAMPLE + $Posh.Net.Private +#> +foreach ($type in $this.Type) { + if ($type.IsNotPublic) { + $type + } +} + + Public From 9cc2d16b03a34b18e1b34a76cf82a847ba90106e Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 16:52:11 +0000 Subject: [PATCH 153/224] Adding Posh.NET.get_Private (Fixes #290) --- docs/Posh/NET/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Posh/NET/README.md b/docs/Posh/NET/README.md index 9ae6030..2b845a3 100644 --- a/docs/Posh/NET/README.md +++ b/docs/Posh/NET/README.md @@ -5,5 +5,6 @@ * [get_Assembly](get_Assembly.md) +* [get_Private](get_Private.md) * [get_Public](get_Public.md) * [get_Type](get_Type.md) From 9feb2abdd992ea81da39f9f723309c39258dce67 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 16:52:11 +0000 Subject: [PATCH 154/224] Adding Posh.NET.get_Private (Fixes #290) --- docs/Posh/NET/get_Private.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/NET/get_Private.md diff --git a/docs/Posh/NET/get_Private.md b/docs/Posh/NET/get_Private.md new file mode 100644 index 0000000..223e4f5 --- /dev/null +++ b/docs/Posh/NET/get_Private.md @@ -0,0 +1,32 @@ +Posh.NET.get_Private() +---------------------- + + + + +### Synopsis +Gets private types + + + +--- + + +### Description + +Gets all currently loaded private types + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Net.Private +``` + + +--- From baf2afa07b4f5ef932896793aff5a50f21282c82 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Tue, 26 Sep 2023 10:17:35 -0700 Subject: [PATCH 155/224] Adding Posh.NET.get_Interface(s) (Fixes #286) --- Types/Posh.NET/Alias.psd1 | 1 + Types/Posh.NET/get_Interface.ps1 | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 Types/Posh.NET/get_Interface.ps1 diff --git a/Types/Posh.NET/Alias.psd1 b/Types/Posh.NET/Alias.psd1 index 714e009..4567173 100644 --- a/Types/Posh.NET/Alias.psd1 +++ b/Types/Posh.NET/Alias.psd1 @@ -1,4 +1,5 @@ @{ Assemblies = "Assembly" Types = "Type" + Interfaces = "Interface" } diff --git a/Types/Posh.NET/get_Interface.ps1 b/Types/Posh.NET/get_Interface.ps1 new file mode 100644 index 0000000..6251c4e --- /dev/null +++ b/Types/Posh.NET/get_Interface.ps1 @@ -0,0 +1,11 @@ +<# +.SYNOPSIS + Gets all interfaces +.DESCRIPTION + Gets all currently loaded interfaces +#> +foreach ($type in $this.Type) { + if ($type.IsInterface) { + $type + } +} \ No newline at end of file From 4b550db57cc631de94e28b90d3f40240bdc414fe Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 17:19:02 +0000 Subject: [PATCH 156/224] Adding Posh.NET.get_Interface(s) (Fixes #286) --- Posh.types.ps1xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index 959c71e..2dc65e7 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -1687,6 +1687,10 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. Assemblies Assembly + + Interfaces + Interface + Types Type @@ -1707,6 +1711,22 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. [AppDomain]::CurrentDomain.GetAssemblies() + + Interface + + <# +.SYNOPSIS + Gets all interfaces +.DESCRIPTION + Gets all currently loaded interfaces +#> +foreach ($type in $this.Type) { + if ($type.IsInterface) { + $type + } +} + + Private From ed9ccbc783d3f0b53c2d3a5d41c917b683a04688 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 17:19:24 +0000 Subject: [PATCH 157/224] Adding Posh.NET.get_Interface(s) (Fixes #286) --- docs/Posh/NET/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Posh/NET/README.md b/docs/Posh/NET/README.md index 2b845a3..ffc4e96 100644 --- a/docs/Posh/NET/README.md +++ b/docs/Posh/NET/README.md @@ -5,6 +5,7 @@ * [get_Assembly](get_Assembly.md) +* [get_Interface](get_Interface.md) * [get_Private](get_Private.md) * [get_Public](get_Public.md) * [get_Type](get_Type.md) From cbf0e230fd404acc8934b9a87f5e06711b71f5d9 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 17:19:24 +0000 Subject: [PATCH 158/224] Adding Posh.NET.get_Interface(s) (Fixes #286) --- docs/Posh/NET/get_Interface.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/Posh/NET/get_Interface.md diff --git a/docs/Posh/NET/get_Interface.md b/docs/Posh/NET/get_Interface.md new file mode 100644 index 0000000..e7a66b6 --- /dev/null +++ b/docs/Posh/NET/get_Interface.md @@ -0,0 +1,21 @@ +Posh.NET.get_Interface() +------------------------ + + + + +### Synopsis +Gets all interfaces + + + +--- + + +### Description + +Gets all currently loaded interfaces + + + +--- From 69283efd40a9d92341bac90d4fdc616f950d4ebb Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Tue, 26 Sep 2023 10:21:10 -0700 Subject: [PATCH 159/224] Adding Posh.NET.get_Enum(s) (Fixes #287) --- Types/Posh.NET/Alias.psd1 | 1 + Types/Posh.NET/get_Enum.ps1 | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 Types/Posh.NET/get_Enum.ps1 diff --git a/Types/Posh.NET/Alias.psd1 b/Types/Posh.NET/Alias.psd1 index 4567173..526af2e 100644 --- a/Types/Posh.NET/Alias.psd1 +++ b/Types/Posh.NET/Alias.psd1 @@ -2,4 +2,5 @@ Assemblies = "Assembly" Types = "Type" Interfaces = "Interface" + Enums = "Enum" } diff --git a/Types/Posh.NET/get_Enum.ps1 b/Types/Posh.NET/get_Enum.ps1 new file mode 100644 index 0000000..b387d39 --- /dev/null +++ b/Types/Posh.NET/get_Enum.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Gets enumerated typed +.DESCRIPTION + Gets all currently loaded enumerated types +.EXAMPLE + $Posh.Net.Enum +.EXAMPLE + $Posh.Net.Enums +#> +foreach ($type in $this.Type) { + if ($type.IsEnum) { + $type + } +} \ No newline at end of file From f66b9fa31944af7f768f5f0cf9176bac4447881e Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 17:22:31 +0000 Subject: [PATCH 160/224] Adding Posh.NET.get_Enum(s) (Fixes #287) --- Posh.types.ps1xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index 2dc65e7..15ef34e 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -1687,6 +1687,10 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. Assemblies Assembly + + Enums + Enum + Interfaces Interface @@ -1711,6 +1715,26 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. [AppDomain]::CurrentDomain.GetAssemblies() + + Enum + + <# +.SYNOPSIS + Gets enumerated typed +.DESCRIPTION + Gets all currently loaded enumerated types +.EXAMPLE + $Posh.Net.Enum +.EXAMPLE + $Posh.Net.Enums +#> +foreach ($type in $this.Type) { + if ($type.IsEnum) { + $type + } +} + + Interface From f1a88af8b1ea7db7a74eb3d0583e857b8f5a201f Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 17:22:50 +0000 Subject: [PATCH 161/224] Adding Posh.NET.get_Enum(s) (Fixes #287) --- docs/Posh/NET/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Posh/NET/README.md b/docs/Posh/NET/README.md index ffc4e96..1e7d986 100644 --- a/docs/Posh/NET/README.md +++ b/docs/Posh/NET/README.md @@ -5,6 +5,7 @@ * [get_Assembly](get_Assembly.md) +* [get_Enum](get_Enum.md) * [get_Interface](get_Interface.md) * [get_Private](get_Private.md) * [get_Public](get_Public.md) From bb5adb47708a3996f4b0a06c68d8728be71519f6 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 17:22:50 +0000 Subject: [PATCH 162/224] Adding Posh.NET.get_Enum(s) (Fixes #287) --- docs/Posh/NET/get_Enum.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docs/Posh/NET/get_Enum.md diff --git a/docs/Posh/NET/get_Enum.md b/docs/Posh/NET/get_Enum.md new file mode 100644 index 0000000..443c9e6 --- /dev/null +++ b/docs/Posh/NET/get_Enum.md @@ -0,0 +1,37 @@ +Posh.NET.get_Enum() +------------------- + + + + +### Synopsis +Gets enumerated typed + + + +--- + + +### Description + +Gets all currently loaded enumerated types + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Net.Enum +``` +> EXAMPLE 2 + +```PowerShell +$Posh.Net.Enums +``` + + +--- From 3700ae7c079d1b690872258f26a8b4fbf7e09c91 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Tue, 26 Sep 2023 10:24:01 -0700 Subject: [PATCH 163/224] Adding Posh.NET.get_Abstract(s) (Fixes #288) --- Types/Posh.NET/Alias.psd1 | 3 ++- Types/Posh.NET/get_Abstract.ps1 | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 Types/Posh.NET/get_Abstract.ps1 diff --git a/Types/Posh.NET/Alias.psd1 b/Types/Posh.NET/Alias.psd1 index 526af2e..bf068a7 100644 --- a/Types/Posh.NET/Alias.psd1 +++ b/Types/Posh.NET/Alias.psd1 @@ -1,6 +1,7 @@ @{ + Abstracts = "Abstract" Assemblies = "Assembly" Types = "Type" Interfaces = "Interface" - Enums = "Enum" + Enums = "Enum" } diff --git a/Types/Posh.NET/get_Abstract.ps1 b/Types/Posh.NET/get_Abstract.ps1 new file mode 100644 index 0000000..aeb0fc5 --- /dev/null +++ b/Types/Posh.NET/get_Abstract.ps1 @@ -0,0 +1,13 @@ +<# +.SYNOPSIS + Gets abstract types. +.DESCRIPTION + Gets currently loaded abstract types. +.EXAMPLE + $posh.Net.Abstract +#> +foreach ($type in $this.Type) { + if ($type.Attributes -band 'Abstract') { + $type + } +} \ No newline at end of file From 342b71e493500c65ca996c7dd27579b8c35a188a Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 17:25:28 +0000 Subject: [PATCH 164/224] Adding Posh.NET.get_Abstract(s) (Fixes #288) --- Posh.types.ps1xml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index 15ef34e..d418ab7 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -1683,6 +1683,10 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. Posh.NET + + Abstracts + Abstract + Assemblies Assembly @@ -1699,6 +1703,24 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. Types Type + + Abstract + + <# +.SYNOPSIS + Gets abstract types. +.DESCRIPTION + Gets currently loaded abstract types. +.EXAMPLE + $posh.Net.Abstract +#> +foreach ($type in $this.Type) { + if ($type.Attributes -band 'Abstract') { + $type + } +} + + Assembly From 8052b641215e220d2936daf9338201ea6222cde4 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 17:25:51 +0000 Subject: [PATCH 165/224] Adding Posh.NET.get_Abstract(s) (Fixes #288) --- docs/Posh/NET/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Posh/NET/README.md b/docs/Posh/NET/README.md index 1e7d986..479cd6a 100644 --- a/docs/Posh/NET/README.md +++ b/docs/Posh/NET/README.md @@ -4,6 +4,7 @@ ### Script Methods +* [get_Abstract](get_Abstract.md) * [get_Assembly](get_Assembly.md) * [get_Enum](get_Enum.md) * [get_Interface](get_Interface.md) From bbf1022a37241a83307a0dbe11ab7182c6688774 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 17:25:51 +0000 Subject: [PATCH 166/224] Adding Posh.NET.get_Abstract(s) (Fixes #288) --- docs/Posh/NET/get_Abstract.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/NET/get_Abstract.md diff --git a/docs/Posh/NET/get_Abstract.md b/docs/Posh/NET/get_Abstract.md new file mode 100644 index 0000000..f71ee91 --- /dev/null +++ b/docs/Posh/NET/get_Abstract.md @@ -0,0 +1,32 @@ +Posh.NET.get_Abstract() +----------------------- + + + + +### Synopsis +Gets abstract types. + + + +--- + + +### Description + +Gets currently loaded abstract types. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Net.Abstract +``` + + +--- From 25359ee266c77983a0c90c656119f8d1684a8e4d Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Tue, 26 Sep 2023 10:25:55 -0700 Subject: [PATCH 167/224] Adding Posh.NET.get_Generic(s) (Fixes #291) --- Types/Posh.NET/Alias.psd1 | 1 + Types/Posh.NET/get_Generic.ps1 | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 Types/Posh.NET/get_Generic.ps1 diff --git a/Types/Posh.NET/Alias.psd1 b/Types/Posh.NET/Alias.psd1 index bf068a7..01a407a 100644 --- a/Types/Posh.NET/Alias.psd1 +++ b/Types/Posh.NET/Alias.psd1 @@ -1,6 +1,7 @@ @{ Abstracts = "Abstract" Assemblies = "Assembly" + Generics = "Generic" Types = "Type" Interfaces = "Interface" Enums = "Enum" diff --git a/Types/Posh.NET/get_Generic.ps1 b/Types/Posh.NET/get_Generic.ps1 new file mode 100644 index 0000000..c27d014 --- /dev/null +++ b/Types/Posh.NET/get_Generic.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Gets generic types. +.DESCRIPTION + Gets currently loaded generic types. +.EXAMPLE + $Posh.Net.Generic +.EXAMPLE + $Posh.Net.Generics +#> +foreach ($type in $this.Type) { + if ($type.IsGenericType) { + $type + } +} \ No newline at end of file From ab0af3c9d9b2702b0ea4490ad3e12c89be52d2d1 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 17:27:13 +0000 Subject: [PATCH 168/224] Adding Posh.NET.get_Generic(s) (Fixes #291) --- Posh.types.ps1xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index d418ab7..4da0431 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -1695,6 +1695,10 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. Enums Enum + + Generics + Generic + Interfaces Interface @@ -1754,6 +1758,26 @@ foreach ($type in $this.Type) { if ($type.IsEnum) { $type } +} + + + + Generic + + <# +.SYNOPSIS + Gets generic types. +.DESCRIPTION + Gets currently loaded generic types. +.EXAMPLE + $Posh.Net.Generic +.EXAMPLE + $Posh.Net.Generics +#> +foreach ($type in $this.Type) { + if ($type.IsGenericType) { + $type + } } From f8a66db113de0afa19e9cb84c05a8aea220fc0c5 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 17:27:30 +0000 Subject: [PATCH 169/224] Adding Posh.NET.get_Generic(s) (Fixes #291) --- docs/Posh/NET/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Posh/NET/README.md b/docs/Posh/NET/README.md index 479cd6a..ab5e7f2 100644 --- a/docs/Posh/NET/README.md +++ b/docs/Posh/NET/README.md @@ -7,6 +7,7 @@ * [get_Abstract](get_Abstract.md) * [get_Assembly](get_Assembly.md) * [get_Enum](get_Enum.md) +* [get_Generic](get_Generic.md) * [get_Interface](get_Interface.md) * [get_Private](get_Private.md) * [get_Public](get_Public.md) From a3ecc600b165a62e6ee4b9fbf4a28832a6c5cd49 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 17:27:30 +0000 Subject: [PATCH 170/224] Adding Posh.NET.get_Generic(s) (Fixes #291) --- docs/Posh/NET/get_Generic.md | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docs/Posh/NET/get_Generic.md diff --git a/docs/Posh/NET/get_Generic.md b/docs/Posh/NET/get_Generic.md new file mode 100644 index 0000000..d289141 --- /dev/null +++ b/docs/Posh/NET/get_Generic.md @@ -0,0 +1,37 @@ +Posh.NET.get_Generic() +---------------------- + + + + +### Synopsis +Gets generic types. + + + +--- + + +### Description + +Gets currently loaded generic types. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Net.Generic +``` +> EXAMPLE 2 + +```PowerShell +$Posh.Net.Generics +``` + + +--- From 21d0d61a4b88848a0db786e02ce8eca6698350a6 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Tue, 26 Sep 2023 10:30:51 -0700 Subject: [PATCH 171/224] Adding Posh.NET.get_Attribute(s) (Fixes #293) --- Types/Posh.NET/Alias.psd1 | 1 + Types/Posh.NET/get_Attribute.ps1 | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 Types/Posh.NET/get_Attribute.ps1 diff --git a/Types/Posh.NET/Alias.psd1 b/Types/Posh.NET/Alias.psd1 index 01a407a..f364d1b 100644 --- a/Types/Posh.NET/Alias.psd1 +++ b/Types/Posh.NET/Alias.psd1 @@ -1,6 +1,7 @@ @{ Abstracts = "Abstract" Assemblies = "Assembly" + Attributes = "Attribute" Generics = "Generic" Types = "Type" Interfaces = "Interface" diff --git a/Types/Posh.NET/get_Attribute.ps1 b/Types/Posh.NET/get_Attribute.ps1 new file mode 100644 index 0000000..1d33f83 --- /dev/null +++ b/Types/Posh.NET/get_Attribute.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Gets attribute types +.DESCRIPTION + Gets all currently loaded attribute types +.EXAMPLE + $Posh.Net.Attribute +.EXAMPLE + $Posh.Net.Attributes +#> +foreach ($type in $this.Type) { + if ($type.IsSubclassOf([Attribute])) { + $type + } +} \ No newline at end of file From a5d26de91083bb30b991cc9d674f78cfaf923b72 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 17:32:07 +0000 Subject: [PATCH 172/224] Adding Posh.NET.get_Attribute(s) (Fixes #293) --- Posh.types.ps1xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index 4da0431..d428070 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -1691,6 +1691,10 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. Assemblies Assembly + + Attributes + Attribute + Enums Enum @@ -1741,6 +1745,26 @@ foreach ($type in $this.Type) { [AppDomain]::CurrentDomain.GetAssemblies() + + Attribute + + <# +.SYNOPSIS + Gets attribute types +.DESCRIPTION + Gets all currently loaded attribute types +.EXAMPLE + $Posh.Net.Attribute +.EXAMPLE + $Posh.Net.Attributes +#> +foreach ($type in $this.Type) { + if ($type.IsSubclassOf([Attribute])) { + $type + } +} + + Enum From 9579ee2ec7faa800948d8d63568d8346039948f8 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 17:32:24 +0000 Subject: [PATCH 173/224] Adding Posh.NET.get_Attribute(s) (Fixes #293) --- docs/Posh/NET/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Posh/NET/README.md b/docs/Posh/NET/README.md index ab5e7f2..161d35d 100644 --- a/docs/Posh/NET/README.md +++ b/docs/Posh/NET/README.md @@ -6,6 +6,7 @@ * [get_Abstract](get_Abstract.md) * [get_Assembly](get_Assembly.md) +* [get_Attribute](get_Attribute.md) * [get_Enum](get_Enum.md) * [get_Generic](get_Generic.md) * [get_Interface](get_Interface.md) From c279bc53fd34dc4c1376df876e448092796cbe35 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 17:32:24 +0000 Subject: [PATCH 174/224] Adding Posh.NET.get_Attribute(s) (Fixes #293) --- docs/Posh/NET/get_Attribute.md | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docs/Posh/NET/get_Attribute.md diff --git a/docs/Posh/NET/get_Attribute.md b/docs/Posh/NET/get_Attribute.md new file mode 100644 index 0000000..1015dd4 --- /dev/null +++ b/docs/Posh/NET/get_Attribute.md @@ -0,0 +1,37 @@ +Posh.NET.get_Attribute() +------------------------ + + + + +### Synopsis +Gets attribute types + + + +--- + + +### Description + +Gets all currently loaded attribute types + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Net.Attribute +``` +> EXAMPLE 2 + +```PowerShell +$Posh.Net.Attributes +``` + + +--- From 1f01a9182d712a13bd39493d5acfd21f17d48308 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Tue, 26 Sep 2023 11:40:26 -0700 Subject: [PATCH 175/224] Adding Posh.NET.get_Delegate(s) (Fixes #292) --- Types/Posh.NET/Alias.psd1 | 1 + Types/Posh.NET/get_Delegate.ps1 | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 Types/Posh.NET/get_Delegate.ps1 diff --git a/Types/Posh.NET/Alias.psd1 b/Types/Posh.NET/Alias.psd1 index f364d1b..b798ffe 100644 --- a/Types/Posh.NET/Alias.psd1 +++ b/Types/Posh.NET/Alias.psd1 @@ -2,6 +2,7 @@ Abstracts = "Abstract" Assemblies = "Assembly" Attributes = "Attribute" + Delegates = "Delegate" Generics = "Generic" Types = "Type" Interfaces = "Interface" diff --git a/Types/Posh.NET/get_Delegate.ps1 b/Types/Posh.NET/get_Delegate.ps1 new file mode 100644 index 0000000..4276f08 --- /dev/null +++ b/Types/Posh.NET/get_Delegate.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Gets delegates +.DESCRIPTION + Gets all currently loaded delegates. +.EXAMPLE + $Posh.Net.Delegate +.EXAMPLE + $Posh.Net.Delegates +#> +foreach ($type in $this.Public) { + if ($type.IsSubclassOf([Delegate])) { + $type + } +} \ No newline at end of file From 21dcef35a53083790a209507c0861054dcb7ec10 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 18:41:33 +0000 Subject: [PATCH 176/224] Adding Posh.NET.get_Delegate(s) (Fixes #292) --- Posh.types.ps1xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index d428070..057851f 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -1695,6 +1695,10 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. Attributes Attribute + + Delegates + Delegate + Enums Enum @@ -1762,6 +1766,26 @@ foreach ($type in $this.Type) { if ($type.IsSubclassOf([Attribute])) { $type } +} + + + + Delegate + + <# +.SYNOPSIS + Gets delegates +.DESCRIPTION + Gets all currently loaded delegates. +.EXAMPLE + $Posh.Net.Delegate +.EXAMPLE + $Posh.Net.Delegates +#> +foreach ($type in $this.Public) { + if ($type.IsSubclassOf([Delegate])) { + $type + } } From 25264977eb531db8e0a1063a0f219bd853bc9e79 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 18:42:18 +0000 Subject: [PATCH 177/224] Adding Posh.NET.get_Delegate(s) (Fixes #292) --- docs/Posh/NET/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Posh/NET/README.md b/docs/Posh/NET/README.md index 161d35d..859495c 100644 --- a/docs/Posh/NET/README.md +++ b/docs/Posh/NET/README.md @@ -7,6 +7,7 @@ * [get_Abstract](get_Abstract.md) * [get_Assembly](get_Assembly.md) * [get_Attribute](get_Attribute.md) +* [get_Delegate](get_Delegate.md) * [get_Enum](get_Enum.md) * [get_Generic](get_Generic.md) * [get_Interface](get_Interface.md) From 40e834ae03e760271e22a58487a12d5cf22b0e2f Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Tue, 26 Sep 2023 18:42:18 +0000 Subject: [PATCH 178/224] Adding Posh.NET.get_Delegate(s) (Fixes #292) --- docs/Posh/NET/get_Delegate.md | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docs/Posh/NET/get_Delegate.md diff --git a/docs/Posh/NET/get_Delegate.md b/docs/Posh/NET/get_Delegate.md new file mode 100644 index 0000000..5531b4c --- /dev/null +++ b/docs/Posh/NET/get_Delegate.md @@ -0,0 +1,37 @@ +Posh.NET.get_Delegate() +----------------------- + + + + +### Synopsis +Gets delegates + + + +--- + + +### Description + +Gets all currently loaded delegates. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Net.Delegate +``` +> EXAMPLE 2 + +```PowerShell +$Posh.Net.Delegates +``` + + +--- From a8ef24ee48b01844fee831ba554d8ff47d327ba3 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Tue, 26 Sep 2023 22:35:43 -0700 Subject: [PATCH 179/224] Adding Posh.NET.get_Cmdlet(s) (Fixes #294) --- Types/Posh.NET/Alias.psd1 | 1 + Types/Posh.NET/get_Cmdlet.ps1 | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 Types/Posh.NET/get_Cmdlet.ps1 diff --git a/Types/Posh.NET/Alias.psd1 b/Types/Posh.NET/Alias.psd1 index b798ffe..cba5618 100644 --- a/Types/Posh.NET/Alias.psd1 +++ b/Types/Posh.NET/Alias.psd1 @@ -2,6 +2,7 @@ Abstracts = "Abstract" Assemblies = "Assembly" Attributes = "Attribute" + Cmdlets = "Cmdlet" Delegates = "Delegate" Generics = "Generic" Types = "Type" diff --git a/Types/Posh.NET/get_Cmdlet.ps1 b/Types/Posh.NET/get_Cmdlet.ps1 new file mode 100644 index 0000000..3eb594b --- /dev/null +++ b/Types/Posh.NET/get_Cmdlet.ps1 @@ -0,0 +1,16 @@ +<# +.SYNOPSIS + Gets cmdlet types +.DESCRIPTION + Gets .net types that are subclasses of Cmdlet. +.EXAMPLE + $posh.Net.Cmdlet +.EXAMPLE + $posh.Net.Cmdlets + +#> +foreach ($type in $this.Public) { + if ($type.IsSubclassOf([Management.Automation.Cmdlet])) { + $type + } +} \ No newline at end of file From 582cf5d532052d17dfc77c93c8c1d7d01f462bc9 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Sep 2023 05:36:56 +0000 Subject: [PATCH 180/224] Adding Posh.NET.get_Cmdlet(s) (Fixes #294) --- Posh.types.ps1xml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index 057851f..03cfac8 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -1695,6 +1695,10 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. Attributes Attribute + + Cmdlets + Cmdlet + Delegates Delegate @@ -1766,6 +1770,27 @@ foreach ($type in $this.Type) { if ($type.IsSubclassOf([Attribute])) { $type } +} + + + + Cmdlet + + <# +.SYNOPSIS + Gets cmdlet types +.DESCRIPTION + Gets .net types that are subclasses of Cmdlet. +.EXAMPLE + $posh.Net.Cmdlet +.EXAMPLE + $posh.Net.Cmdlets + +#> +foreach ($type in $this.Public) { + if ($type.IsSubclassOf([Management.Automation.Cmdlet])) { + $type + } } From 779a92b5d20f6b5bfbee414b4fed32c2afd31399 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Sep 2023 05:37:16 +0000 Subject: [PATCH 181/224] Adding Posh.NET.get_Cmdlet(s) (Fixes #294) --- docs/Posh/NET/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Posh/NET/README.md b/docs/Posh/NET/README.md index 859495c..133c8aa 100644 --- a/docs/Posh/NET/README.md +++ b/docs/Posh/NET/README.md @@ -7,6 +7,7 @@ * [get_Abstract](get_Abstract.md) * [get_Assembly](get_Assembly.md) * [get_Attribute](get_Attribute.md) +* [get_Cmdlet](get_Cmdlet.md) * [get_Delegate](get_Delegate.md) * [get_Enum](get_Enum.md) * [get_Generic](get_Generic.md) From 931c238bcdab03ae111793ba60269a398554b3bc Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Sep 2023 05:37:16 +0000 Subject: [PATCH 182/224] Adding Posh.NET.get_Cmdlet(s) (Fixes #294) --- docs/Posh/NET/get_Cmdlet.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docs/Posh/NET/get_Cmdlet.md diff --git a/docs/Posh/NET/get_Cmdlet.md b/docs/Posh/NET/get_Cmdlet.md new file mode 100644 index 0000000..8c90bb0 --- /dev/null +++ b/docs/Posh/NET/get_Cmdlet.md @@ -0,0 +1,37 @@ +Posh.NET.get_Cmdlet() +--------------------- + + + + +### Synopsis +Gets cmdlet types + + + +--- + + +### Description + +Gets .net types that are subclasses of Cmdlet. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Net.Cmdlet +``` +> EXAMPLE 2 + +```PowerShell +$posh.Net.Cmdlets +``` + + +--- From faea796d70490205c2bc8172be1709cb3c3b2eb7 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Tue, 26 Sep 2023 22:38:00 -0700 Subject: [PATCH 183/224] Adding Posh.NET.get_ValueType(s) (Fixes #295) --- Types/Posh.NET/Alias.psd1 | 3 ++- Types/Posh.NET/get_ValueType.ps1 | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 Types/Posh.NET/get_ValueType.ps1 diff --git a/Types/Posh.NET/Alias.psd1 b/Types/Posh.NET/Alias.psd1 index cba5618..b83c09a 100644 --- a/Types/Posh.NET/Alias.psd1 +++ b/Types/Posh.NET/Alias.psd1 @@ -7,5 +7,6 @@ Generics = "Generic" Types = "Type" Interfaces = "Interface" - Enums = "Enum" + Enums = "Enum" + ValueTypes = "ValueType" } diff --git a/Types/Posh.NET/get_ValueType.ps1 b/Types/Posh.NET/get_ValueType.ps1 new file mode 100644 index 0000000..d0fc972 --- /dev/null +++ b/Types/Posh.NET/get_ValueType.ps1 @@ -0,0 +1,17 @@ +<# +.SYNOPSIS + Gets Value Types +.DESCRIPTION + Gets currently loaded .NET value types + + (types that represent a single value) +.EXAMPLE + $posh.Net.ValueType +.EXAMPLE + $Posh.Net.ValueTypes +#> +foreach ($type in $this.Type) { + if ($type.IsValueType) { + $type + } +} \ No newline at end of file From 9622cb88d5fbdbae87bb5bf97e5c35e82b1bb797 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Sep 2023 05:39:12 +0000 Subject: [PATCH 184/224] Adding Posh.NET.get_ValueType(s) (Fixes #295) --- Posh.types.ps1xml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index 03cfac8..740ed3e 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -1719,6 +1719,10 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. Types Type + + ValueTypes + ValueType + Abstract @@ -1936,6 +1940,28 @@ if (-not ($this.'.Types')) { $this.'.Types' + + ValueType + + <# +.SYNOPSIS + Gets Value Types +.DESCRIPTION + Gets currently loaded .NET value types + + (types that represent a single value) +.EXAMPLE + $posh.Net.ValueType +.EXAMPLE + $Posh.Net.ValueTypes +#> +foreach ($type in $this.Type) { + if ($type.IsValueType) { + $type + } +} + + From 764d3fdfa6e143c7d8216c2ae95e36f71f87eb9c Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Sep 2023 05:39:30 +0000 Subject: [PATCH 185/224] Adding Posh.NET.get_ValueType(s) (Fixes #295) --- docs/Posh/NET/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Posh/NET/README.md b/docs/Posh/NET/README.md index 133c8aa..5fa6514 100644 --- a/docs/Posh/NET/README.md +++ b/docs/Posh/NET/README.md @@ -15,3 +15,4 @@ * [get_Private](get_Private.md) * [get_Public](get_Public.md) * [get_Type](get_Type.md) +* [get_ValueType](get_ValueType.md) From 774502ab04eac319cf1080dc606a3415b6ee8016 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Wed, 27 Sep 2023 05:39:30 +0000 Subject: [PATCH 186/224] Adding Posh.NET.get_ValueType(s) (Fixes #295) --- docs/Posh/NET/get_ValueType.md | 39 ++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 docs/Posh/NET/get_ValueType.md diff --git a/docs/Posh/NET/get_ValueType.md b/docs/Posh/NET/get_ValueType.md new file mode 100644 index 0000000..2466b97 --- /dev/null +++ b/docs/Posh/NET/get_ValueType.md @@ -0,0 +1,39 @@ +Posh.NET.get_ValueType() +------------------------ + + + + +### Synopsis +Gets Value Types + + + +--- + + +### Description + +Gets currently loaded .NET value types + +(types that represent a single value) + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Net.ValueType +``` +> EXAMPLE 2 + +```PowerShell +$Posh.Net.ValueTypes +``` + + +--- From 486e141e1e8b027ff4f4baa9254543325c06591c Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 27 Sep 2023 19:47:56 -0700 Subject: [PATCH 187/224] Adding Posh.NET.get_Exception(s) (Fixes #299) --- Types/Posh.NET/Alias.psd1 | 1 + Types/Posh.NET/get_Exception.ps1 | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 Types/Posh.NET/get_Exception.ps1 diff --git a/Types/Posh.NET/Alias.psd1 b/Types/Posh.NET/Alias.psd1 index b83c09a..04788fa 100644 --- a/Types/Posh.NET/Alias.psd1 +++ b/Types/Posh.NET/Alias.psd1 @@ -4,6 +4,7 @@ Attributes = "Attribute" Cmdlets = "Cmdlet" Delegates = "Delegate" + Exceptions = "Exception" Generics = "Generic" Types = "Type" Interfaces = "Interface" diff --git a/Types/Posh.NET/get_Exception.ps1 b/Types/Posh.NET/get_Exception.ps1 new file mode 100644 index 0000000..5ed1d09 --- /dev/null +++ b/Types/Posh.NET/get_Exception.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Gets exception types +.DESCRIPTION + Gets all currently loaded exception types +.EXAMPLE + $Posh.Net.Exception +.EXAMPLE + $Posh.Net.Exceptions +#> +foreach ($type in $this.Type) { + if ($type.IsSubclassOf([Exception])) { + $type + } +} \ No newline at end of file From d5e6a5f6357ccb3c9679136aa38fd6213503dfe0 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 02:49:31 +0000 Subject: [PATCH 188/224] Adding Posh.NET.get_Exception(s) (Fixes #299) --- Posh.types.ps1xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index 740ed3e..557a517 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -1707,6 +1707,10 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. Enums Enum + + Exceptions + Exception + Generics Generic @@ -1835,6 +1839,26 @@ foreach ($type in $this.Type) { if ($type.IsEnum) { $type } +} + + + + Exception + + <# +.SYNOPSIS + Gets exception types +.DESCRIPTION + Gets all currently loaded exception types +.EXAMPLE + $Posh.Net.Exception +.EXAMPLE + $Posh.Net.Exceptions +#> +foreach ($type in $this.Type) { + if ($type.IsSubclassOf([Exception])) { + $type + } } From 93bad7d29e0d66ee749d3248ee09034767bbdbb6 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 02:49:52 +0000 Subject: [PATCH 189/224] Adding Posh.NET.get_Exception(s) (Fixes #299) --- docs/Posh/NET/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Posh/NET/README.md b/docs/Posh/NET/README.md index 5fa6514..be4a0e0 100644 --- a/docs/Posh/NET/README.md +++ b/docs/Posh/NET/README.md @@ -10,6 +10,7 @@ * [get_Cmdlet](get_Cmdlet.md) * [get_Delegate](get_Delegate.md) * [get_Enum](get_Enum.md) +* [get_Exception](get_Exception.md) * [get_Generic](get_Generic.md) * [get_Interface](get_Interface.md) * [get_Private](get_Private.md) From 74e68a220ac85ef9244786eda42c5bf44db4ece3 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 02:49:52 +0000 Subject: [PATCH 190/224] Adding Posh.NET.get_Exception(s) (Fixes #299) --- docs/Posh/NET/get_Exception.md | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docs/Posh/NET/get_Exception.md diff --git a/docs/Posh/NET/get_Exception.md b/docs/Posh/NET/get_Exception.md new file mode 100644 index 0000000..8fed66b --- /dev/null +++ b/docs/Posh/NET/get_Exception.md @@ -0,0 +1,37 @@ +Posh.NET.get_Exception() +------------------------ + + + + +### Synopsis +Gets exception types + + + +--- + + +### Description + +Gets all currently loaded exception types + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Net.Exception +``` +> EXAMPLE 2 + +```PowerShell +$Posh.Net.Exceptions +``` + + +--- From 89c40fe1092bf215e5f64b132385ddeea10c72df Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 27 Sep 2023 19:51:19 -0700 Subject: [PATCH 191/224] Adding Posh.NET.get_Static (Fixes #303) --- Types/Posh.NET/get_Abstract.ps1 | 2 +- Types/Posh.NET/get_Static.ps1 | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 Types/Posh.NET/get_Static.ps1 diff --git a/Types/Posh.NET/get_Abstract.ps1 b/Types/Posh.NET/get_Abstract.ps1 index aeb0fc5..ab882d1 100644 --- a/Types/Posh.NET/get_Abstract.ps1 +++ b/Types/Posh.NET/get_Abstract.ps1 @@ -7,7 +7,7 @@ $posh.Net.Abstract #> foreach ($type in $this.Type) { - if ($type.Attributes -band 'Abstract') { + if ($type.Attributes -band 'Abstract' -and -not ($type.Attributes -band 'Sealed')) { $type } } \ No newline at end of file diff --git a/Types/Posh.NET/get_Static.ps1 b/Types/Posh.NET/get_Static.ps1 new file mode 100644 index 0000000..9053357 --- /dev/null +++ b/Types/Posh.NET/get_Static.ps1 @@ -0,0 +1,13 @@ +<# +.SYNOPSIS + Gets static types. +.DESCRIPTION + Gets currently loaded static types. +.EXAMPLE + $posh.Net.Abstract +#> +foreach ($type in $this.Type) { + if ($type.Attributes -band 'Abstract,Sealed') { + $type + } +} \ No newline at end of file From 260d2d04e02a974698ba3896c8b2028b9fd29071 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 02:52:31 +0000 Subject: [PATCH 192/224] Adding Posh.NET.get_Static (Fixes #303) --- Posh.types.ps1xml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index 557a517..9617e35 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -1739,7 +1739,7 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. $posh.Net.Abstract #> foreach ($type in $this.Type) { - if ($type.Attributes -band 'Abstract') { + if ($type.Attributes -band 'Abstract' -and -not ($type.Attributes -band 'Sealed')) { $type } } @@ -1931,6 +1931,24 @@ foreach ($type in $this.Type) { if ($type.IsPublic) { $type } +} + + + + Static + + <# +.SYNOPSIS + Gets static types. +.DESCRIPTION + Gets currently loaded static types. +.EXAMPLE + $posh.Net.Abstract +#> +foreach ($type in $this.Type) { + if ($type.Attributes -band 'Abstract,Sealed') { + $type + } } From 78455fda339bab6dd7eb5418f7d517515ebbe52b Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 02:52:49 +0000 Subject: [PATCH 193/224] Adding Posh.NET.get_Static (Fixes #303) --- docs/Posh/NET/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Posh/NET/README.md b/docs/Posh/NET/README.md index be4a0e0..5991648 100644 --- a/docs/Posh/NET/README.md +++ b/docs/Posh/NET/README.md @@ -15,5 +15,6 @@ * [get_Interface](get_Interface.md) * [get_Private](get_Private.md) * [get_Public](get_Public.md) +* [get_Static](get_Static.md) * [get_Type](get_Type.md) * [get_ValueType](get_ValueType.md) From 287da7ea5daedf5d7561de2bf1b666076299a003 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 02:52:49 +0000 Subject: [PATCH 194/224] Adding Posh.NET.get_Static (Fixes #303) --- docs/Posh/NET/get_Static.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/Posh/NET/get_Static.md diff --git a/docs/Posh/NET/get_Static.md b/docs/Posh/NET/get_Static.md new file mode 100644 index 0000000..8516e74 --- /dev/null +++ b/docs/Posh/NET/get_Static.md @@ -0,0 +1,32 @@ +Posh.NET.get_Static() +--------------------- + + + + +### Synopsis +Gets static types. + + + +--- + + +### Description + +Gets currently loaded static types. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Net.Abstract +``` + + +--- From 1831a5dea42f82a94060d2d5c046dd564d27a434 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 27 Sep 2023 20:12:08 -0700 Subject: [PATCH 195/224] Adding Posh.NET.get_TypeAccelerator (Fixes #301) --- Types/Posh.NET/Alias.psd1 | 11 +++++++---- Types/Posh.NET/get_TypeAccelerator.ps1 | 23 +++++++++++++++++++++++ 2 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 Types/Posh.NET/get_TypeAccelerator.ps1 diff --git a/Types/Posh.NET/Alias.psd1 b/Types/Posh.NET/Alias.psd1 index 04788fa..02ff2ab 100644 --- a/Types/Posh.NET/Alias.psd1 +++ b/Types/Posh.NET/Alias.psd1 @@ -2,12 +2,15 @@ Abstracts = "Abstract" Assemblies = "Assembly" Attributes = "Attribute" - Cmdlets = "Cmdlet" - Delegates = "Delegate" + Alias = "TypeAccelerator" + Aliases = "TypeAccelerator" + Enums = "Enum" Exceptions = "Exception" + Cmdlets = "Cmdlet" Generics = "Generic" - Types = "Type" + Delegates = "Delegate" Interfaces = "Interface" - Enums = "Enum" + Types = "Type" + TypeAccelerators = "TypeAccelerator" ValueTypes = "ValueType" } diff --git a/Types/Posh.NET/get_TypeAccelerator.ps1 b/Types/Posh.NET/get_TypeAccelerator.ps1 new file mode 100644 index 0000000..dba7ae5 --- /dev/null +++ b/Types/Posh.NET/get_TypeAccelerator.ps1 @@ -0,0 +1,23 @@ +<# +.SYNOPSIS + Gets type accelerators +.DESCRIPTION + Gets currently loaded type accelerators. +.EXAMPLE + $posh.Net.TypeAccelerator +.EXAMPLE + $Posh.Net.TypeAccelerators +.EXAMPLE + $Posh.Net.Alias +.EXAMPLE + $Posh.Net.Aliases +#> + +$accelerators = ([psobject].assembly.gettype("System.Management.Automation.TypeAccelerators")::Get) +$acceleratorOutput = [Ordered]@{PSTypeName='Posh.Type.Accelerator'} +foreach ($kv in $accelerators.GetEnumerator()) { + if ($kv.Key -ne 'PSObject') { + $acceleratorOutput[$kv.Key] = $kv.Value + } +} +[PSCustomObject]$acceleratorOutput \ No newline at end of file From 19b4ed179d1f6795dbcfca9d67bf701546da8e8f Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 03:13:29 +0000 Subject: [PATCH 196/224] Adding Posh.NET.get_TypeAccelerator (Fixes #301) --- Posh.types.ps1xml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index 9617e35..5b49251 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -1687,6 +1687,14 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. Abstracts Abstract + + Alias + TypeAccelerator + + + Aliases + TypeAccelerator + Assemblies Assembly @@ -1719,6 +1727,10 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. Interfaces Interface + + TypeAccelerators + TypeAccelerator + Types Type @@ -1982,6 +1994,34 @@ if (-not ($this.'.Types')) { $this.'.Types' + + TypeAccelerator + + <# +.SYNOPSIS + Gets type accelerators +.DESCRIPTION + Gets currently loaded type accelerators. +.EXAMPLE + $posh.Net.TypeAccelerator +.EXAMPLE + $Posh.Net.TypeAccelerators +.EXAMPLE + $Posh.Net.Alias +.EXAMPLE + $Posh.Net.Aliases +#> + +$accelerators = ([psobject].assembly.gettype("System.Management.Automation.TypeAccelerators")::Get) +$acceleratorOutput = [Ordered]@{PSTypeName='Posh.Type.Accelerator'} +foreach ($kv in $accelerators.GetEnumerator()) { + if ($kv.Key -ne 'PSObject') { + $acceleratorOutput[$kv.Key] = $kv.Value + } +} +[PSCustomObject]$acceleratorOutput + + ValueType From 3a8dc9b9e008f303381a5c7b35945d190ca32466 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 03:13:45 +0000 Subject: [PATCH 197/224] Adding Posh.NET.get_TypeAccelerator (Fixes #301) --- docs/Posh/NET/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Posh/NET/README.md b/docs/Posh/NET/README.md index 5991648..8dea169 100644 --- a/docs/Posh/NET/README.md +++ b/docs/Posh/NET/README.md @@ -17,4 +17,5 @@ * [get_Public](get_Public.md) * [get_Static](get_Static.md) * [get_Type](get_Type.md) +* [get_TypeAccelerator](get_TypeAccelerator.md) * [get_ValueType](get_ValueType.md) From 67abf36807f2daed28730f874b89667d5fced102 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 03:13:45 +0000 Subject: [PATCH 198/224] Adding Posh.NET.get_TypeAccelerator (Fixes #301) --- docs/Posh/NET/get_TypeAccelerator.md | 47 ++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 docs/Posh/NET/get_TypeAccelerator.md diff --git a/docs/Posh/NET/get_TypeAccelerator.md b/docs/Posh/NET/get_TypeAccelerator.md new file mode 100644 index 0000000..aeedf34 --- /dev/null +++ b/docs/Posh/NET/get_TypeAccelerator.md @@ -0,0 +1,47 @@ +Posh.NET.get_TypeAccelerator() +------------------------------ + + + + +### Synopsis +Gets type accelerators + + + +--- + + +### Description + +Gets currently loaded type accelerators. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Net.TypeAccelerator +``` +> EXAMPLE 2 + +```PowerShell +$Posh.Net.TypeAccelerators +``` +> EXAMPLE 3 + +```PowerShell +$Posh.Net.Alias +``` +> EXAMPLE 4 + +```PowerShell +$Posh.Net.Aliases +``` + + +--- From c0a65b583173757a1133b8678921decfd2e40c25 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 27 Sep 2023 20:14:29 -0700 Subject: [PATCH 199/224] Adding Posh.NET.set_TypeAccelerator (Fixes #302) --- Types/Posh.NET/set_TypeAccelerator.ps1 | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Types/Posh.NET/set_TypeAccelerator.ps1 diff --git a/Types/Posh.NET/set_TypeAccelerator.ps1 b/Types/Posh.NET/set_TypeAccelerator.ps1 new file mode 100644 index 0000000..b40e753 --- /dev/null +++ b/Types/Posh.NET/set_TypeAccelerator.ps1 @@ -0,0 +1,37 @@ +<# +.SYNOPSIS + Sets type accelerators +.DESCRIPTION + Sets type accelerators (aliases for types) +.EXAMPLE + $posh.Net.TypeAccelerator = @{'t'=[type]} +.EXAMPLE + $posh.Net.Alias = 't10', [type] +#> +param() + +$accelerators = [psobject].assembly.gettype("System.Management.Automation.TypeAccelerators") +$currentString = '' + +$unrolledArgs = $args | . { process { $_ } } +foreach ($arg in $unrolledArgs) { + if ($arg -is [Collections.IDictionary]) { + + foreach ($kv in $arg.GetEnumerator()) { + if ($kv.Value -as [type]) { + $null = $accelerators::Add($kv.Key, $kv.Value) + } + } + } + elseif ($arg -is [string]) { + + $currentString = "$arg" + } + elseif ($arg -is [type] -and $currentString) { + + $null = $accelerators::Add($currentString, [type]$arg) + $currentString = '' + } else { + + } +} \ No newline at end of file From 295506c6bce044bd79344a2d3e36d17150294592 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 03:16:00 +0000 Subject: [PATCH 200/224] Adding Posh.NET.set_TypeAccelerator (Fixes #302) --- Posh.types.ps1xml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index 5b49251..10713aa 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -2021,6 +2021,45 @@ foreach ($kv in $accelerators.GetEnumerator()) { } [PSCustomObject]$acceleratorOutput + + <# +.SYNOPSIS + Sets type accelerators +.DESCRIPTION + Sets type accelerators (aliases for types) +.EXAMPLE + $posh.Net.TypeAccelerator = @{'t'=[type]} +.EXAMPLE + $posh.Net.Alias = 't10', [type] +#> +param() + +$accelerators = [psobject].assembly.gettype("System.Management.Automation.TypeAccelerators") +$currentString = '' + +$unrolledArgs = $args | . { process { $_ } } +foreach ($arg in $unrolledArgs) { + if ($arg -is [Collections.IDictionary]) { + + foreach ($kv in $arg.GetEnumerator()) { + if ($kv.Value -as [type]) { + $null = $accelerators::Add($kv.Key, $kv.Value) + } + } + } + elseif ($arg -is [string]) { + + $currentString = "$arg" + } + elseif ($arg -is [type] -and $currentString) { + + $null = $accelerators::Add($currentString, [type]$arg) + $currentString = '' + } else { + + } +} + ValueType From 5bb9ad951babd10b40d647c04f09d50938027bf2 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 03:16:22 +0000 Subject: [PATCH 201/224] Adding Posh.NET.set_TypeAccelerator (Fixes #302) --- docs/Posh/NET/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Posh/NET/README.md b/docs/Posh/NET/README.md index 8dea169..5204512 100644 --- a/docs/Posh/NET/README.md +++ b/docs/Posh/NET/README.md @@ -18,4 +18,5 @@ * [get_Static](get_Static.md) * [get_Type](get_Type.md) * [get_TypeAccelerator](get_TypeAccelerator.md) +* [set_TypeAccelerator](set_TypeAccelerator.md) * [get_ValueType](get_ValueType.md) From a35bdc3245f0f531d08d51f426cd5d371993135d Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 03:16:22 +0000 Subject: [PATCH 202/224] Adding Posh.NET.set_TypeAccelerator (Fixes #302) --- docs/Posh/NET/set_TypeAccelerator.md | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docs/Posh/NET/set_TypeAccelerator.md diff --git a/docs/Posh/NET/set_TypeAccelerator.md b/docs/Posh/NET/set_TypeAccelerator.md new file mode 100644 index 0000000..5dfb3d0 --- /dev/null +++ b/docs/Posh/NET/set_TypeAccelerator.md @@ -0,0 +1,37 @@ +Posh.NET.set_TypeAccelerator() +------------------------------ + + + + +### Synopsis +Sets type accelerators + + + +--- + + +### Description + +Sets type accelerators (aliases for types) + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$posh.Net.TypeAccelerator = @{'t'=[type]} +``` +> EXAMPLE 2 + +```PowerShell +$posh.Net.Alias = 't10', [type] +``` + + +--- From f4076ce7cba2e0be130b1a2469b96e1f40092af0 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 27 Sep 2023 20:29:12 -0700 Subject: [PATCH 203/224] Adding Posh.NET.get_ExtensionType(s) (Fixes #296) --- Types/Posh.NET/Alias.psd1 | 1 + Types/Posh.NET/get_ExtensionType.ps1 | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 Types/Posh.NET/get_ExtensionType.ps1 diff --git a/Types/Posh.NET/Alias.psd1 b/Types/Posh.NET/Alias.psd1 index 02ff2ab..70dcbeb 100644 --- a/Types/Posh.NET/Alias.psd1 +++ b/Types/Posh.NET/Alias.psd1 @@ -6,6 +6,7 @@ Aliases = "TypeAccelerator" Enums = "Enum" Exceptions = "Exception" + ExtensionTypes = "ExtensionType" Cmdlets = "Cmdlet" Generics = "Generic" Delegates = "Delegate" diff --git a/Types/Posh.NET/get_ExtensionType.ps1 b/Types/Posh.NET/get_ExtensionType.ps1 new file mode 100644 index 0000000..2ecac45 --- /dev/null +++ b/Types/Posh.NET/get_ExtensionType.ps1 @@ -0,0 +1,16 @@ +<# +.SYNOPSIS + Gets .NET extension types +.DESCRIPTION + Gets .NET Extension Types. + + These types define extension methods for LINQ. +#> +:nextType foreach ($type in $this.Type) { + foreach ($attr in $type.GetCustomAttributes($false)) { + if ($attr -is [Runtime.CompilerServices.ExtensionAttribute]) { + $type + continue nextType + } + } +} \ No newline at end of file From 260b7a7ce98740170b78bdb6bd7afdf9c2159c3c Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 03:30:27 +0000 Subject: [PATCH 204/224] Adding Posh.NET.get_ExtensionType(s) (Fixes #296) --- Posh.types.ps1xml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index 10713aa..cd6c935 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -1719,6 +1719,10 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. Exceptions Exception + + ExtensionTypes + ExtensionType + Generics Generic @@ -1871,6 +1875,27 @@ foreach ($type in $this.Type) { if ($type.IsSubclassOf([Exception])) { $type } +} + + + + ExtensionType + + <# +.SYNOPSIS + Gets .NET extension types +.DESCRIPTION + Gets .NET Extension Types. + + These types define extension methods for LINQ. +#> +:nextType foreach ($type in $this.Type) { + foreach ($attr in $type.GetCustomAttributes($false)) { + if ($attr -is [Runtime.CompilerServices.ExtensionAttribute]) { + $type + continue nextType + } + } } From e2a4fea3a6dff3b152c1fffc65b7128e3941f2b6 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 03:30:44 +0000 Subject: [PATCH 205/224] Adding Posh.NET.get_ExtensionType(s) (Fixes #296) --- docs/Posh/NET/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Posh/NET/README.md b/docs/Posh/NET/README.md index 5204512..41a5cf2 100644 --- a/docs/Posh/NET/README.md +++ b/docs/Posh/NET/README.md @@ -11,6 +11,7 @@ * [get_Delegate](get_Delegate.md) * [get_Enum](get_Enum.md) * [get_Exception](get_Exception.md) +* [get_ExtensionType](get_ExtensionType.md) * [get_Generic](get_Generic.md) * [get_Interface](get_Interface.md) * [get_Private](get_Private.md) From b40e0a7e184c35f3da702e3c70f8afe441010f0f Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 03:30:44 +0000 Subject: [PATCH 206/224] Adding Posh.NET.get_ExtensionType(s) (Fixes #296) --- docs/Posh/NET/get_ExtensionType.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docs/Posh/NET/get_ExtensionType.md diff --git a/docs/Posh/NET/get_ExtensionType.md b/docs/Posh/NET/get_ExtensionType.md new file mode 100644 index 0000000..fb6640a --- /dev/null +++ b/docs/Posh/NET/get_ExtensionType.md @@ -0,0 +1,23 @@ +Posh.NET.get_ExtensionType() +---------------------------- + + + + +### Synopsis +Gets .NET extension types + + + +--- + + +### Description + +Gets .NET Extension Types. + +These types define extension methods for LINQ. + + + +--- From 08ab0708574843c5c282dbcc41292a9c89ed6b06 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 27 Sep 2023 20:31:42 -0700 Subject: [PATCH 207/224] Adding Posh.NET.get_Primitive (Fixes #298) --- Types/Posh.NET/get_Primitive.ps1 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Types/Posh.NET/get_Primitive.ps1 diff --git a/Types/Posh.NET/get_Primitive.ps1 b/Types/Posh.NET/get_Primitive.ps1 new file mode 100644 index 0000000..0955a83 --- /dev/null +++ b/Types/Posh.NET/get_Primitive.ps1 @@ -0,0 +1,15 @@ +<# +.SYNOPSIS + Gets primitive types +.DESCRIPTION + Gets all primitive types. + + Primitive types are used to build all other types. +.EXAMPLE + $Posh.Net.Primitive +#> +foreach ($type in $this.Type) { + if ($type.IsPrimitive) { + $type + } +} \ No newline at end of file From 423b5c5226fb20815334e01c4fa92867bb383609 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 03:33:01 +0000 Subject: [PATCH 208/224] Adding Posh.NET.get_Primitive (Fixes #298) --- Posh.types.ps1xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index cd6c935..26bec5f 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -1932,6 +1932,26 @@ foreach ($type in $this.Type) { if ($type.IsInterface) { $type } +} + + + + Primitive + + <# +.SYNOPSIS + Gets primitive types +.DESCRIPTION + Gets all primitive types. + + Primitive types are used to build all other types. +.EXAMPLE + $Posh.Net.Primitive +#> +foreach ($type in $this.Type) { + if ($type.IsPrimitive) { + $type + } } From a5a5eeb4d148b9c955a1e326bbf5adc5f4fb6d1f Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 03:33:18 +0000 Subject: [PATCH 209/224] Adding Posh.NET.get_Primitive (Fixes #298) --- docs/Posh/NET/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Posh/NET/README.md b/docs/Posh/NET/README.md index 41a5cf2..13b595d 100644 --- a/docs/Posh/NET/README.md +++ b/docs/Posh/NET/README.md @@ -14,6 +14,7 @@ * [get_ExtensionType](get_ExtensionType.md) * [get_Generic](get_Generic.md) * [get_Interface](get_Interface.md) +* [get_Primitive](get_Primitive.md) * [get_Private](get_Private.md) * [get_Public](get_Public.md) * [get_Static](get_Static.md) From a85b4dae6b0bf66ad57398f134147f95aecd5731 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 03:33:19 +0000 Subject: [PATCH 210/224] Adding Posh.NET.get_Primitive (Fixes #298) --- docs/Posh/NET/get_Primitive.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 docs/Posh/NET/get_Primitive.md diff --git a/docs/Posh/NET/get_Primitive.md b/docs/Posh/NET/get_Primitive.md new file mode 100644 index 0000000..9c0a079 --- /dev/null +++ b/docs/Posh/NET/get_Primitive.md @@ -0,0 +1,34 @@ +Posh.NET.get_Primitive() +------------------------ + + + + +### Synopsis +Gets primitive types + + + +--- + + +### Description + +Gets all primitive types. + +Primitive types are used to build all other types. + + + +--- + + +### Examples +> EXAMPLE 1 + +```PowerShell +$Posh.Net.Primitive +``` + + +--- From a7f00db5489cdb38eb6e9aabc85fa21b3f227687 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 27 Sep 2023 20:33:42 -0700 Subject: [PATCH 211/224] Adding Posh.NET.get_Type - Improving inner docs (re #285) --- Types/Posh.NET/get_Type.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Types/Posh.NET/get_Type.ps1 b/Types/Posh.NET/get_Type.ps1 index 28fc1d1..11ef1d0 100644 --- a/Types/Posh.NET/get_Type.ps1 +++ b/Types/Posh.NET/get_Type.ps1 @@ -15,8 +15,10 @@ if (-not ($this.'.Types')) { try { $assembly.GetTypes() } catch { + # An assembly can refuse to .GetTypes(), or otherwise have an exception + # we do not want this to worry anyone, so we catch the exception $ex = $_ - $error.RemoveAt(0) + $error.RemoveAt(0) # and remove it from $error } } ) From fdbcdfefe5945aaa75bf5dec8a4425b350a2abc6 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 03:35:04 +0000 Subject: [PATCH 212/224] Adding Posh.NET.get_Type - Improving inner docs (re #285) --- Posh.types.ps1xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index 26bec5f..104728d 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -2029,8 +2029,10 @@ if (-not ($this.'.Types')) { try { $assembly.GetTypes() } catch { + # An assembly can refuse to .GetTypes(), or otherwise have an exception + # we do not want this to worry anyone, so we catch the exception $ex = $_ - $error.RemoveAt(0) + $error.RemoveAt(0) # and remove it from $error } } ) From 62e960c7547d2f80b258300f79ac19d50dd28124 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 27 Sep 2023 20:41:59 -0700 Subject: [PATCH 213/224] Adding Posh.NET.README (Fixes #283) --- Types/Posh.NET/README.md | 63 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Types/Posh.NET/README.md diff --git a/Types/Posh.NET/README.md b/Types/Posh.NET/README.md new file mode 100644 index 0000000..8e46c68 --- /dev/null +++ b/Types/Posh.NET/README.md @@ -0,0 +1,63 @@ +### What Is .NET? + +.NET is a framework of tools for building almost anything you can imagine. + +PowerShell is built on top of .NET, and makes it easy to interactively explore. + +.NET is object-oriented and strongly typed. + +### $Posh.NET + +Posh makes .NET easier to explore. + +For example, to see all primitive types, just run: + +~~~PowerShell +$Posh.Net.Primitive +~~~ + +To see all attributes, use: + +~~~PowerShell +$Posh.Net.Attribute +~~~ + +To see all possible exceptions, use: + +~~~PowerShell +$Posh.Net.Exceptions +~~~ + +To see everything $Posh.Net makes easier, pipe it to `Get-Member` + +~~~PowerShell +$Posh.Net | Get-Member +~~~ + +### .NET Types in PowerShell + +You can reference any public .NET type in PowerShell by putting it within brackets: + +~~~PowerShell +[int] +~~~ + +You can see if an object is a type using the -is operator: + +~~~PowerShell +1 -is [int] +~~~ + +You can cast an object to a type by putting it before an expression: + +~~~PowerShell +[int]"1" +~~~ + +If the object cannot be cast, you will get an exception. + +To see if you can cast an object, use the -as operator + +~~~PowerShell +"1" -as [int] +~~~ \ No newline at end of file From 1174677921c244f861efb6fab1c5da1145707485 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 03:43:18 +0000 Subject: [PATCH 214/224] Adding Posh.NET.README (Fixes #283) --- Posh.types.ps1xml | 66 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index 104728d..f33d399 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -2130,6 +2130,72 @@ foreach ($type in $this.Type) { } + + README + ### What Is .NET? + +.NET is a framework of tools for building almost anything you can imagine. + +PowerShell is built on top of .NET, and makes it easy to interactively explore. + +.NET is object-oriented and strongly typed. + +### $Posh.NET + +Posh makes .NET easier to explore. + +For example, to see all primitive types, just run: + +~~~PowerShell +$Posh.Net.Primitive +~~~ + +To see all attributes, use: + +~~~PowerShell +$Posh.Net.Attribute +~~~ + +To see all possible exceptions, use: + +~~~PowerShell +$Posh.Net.Exceptions +~~~ + +To see everything $Posh.Net makes easier, pipe it to `Get-Member` + +~~~PowerShell +$Posh.Net | Get-Member +~~~ + +### .NET Types in PowerShell + +You can reference any public .NET type in PowerShell by putting it within brackets: + +~~~PowerShell +[int] +~~~ + +You can see if an object is a type using the -is operator: + +~~~PowerShell +1 -is [int] +~~~ + +You can cast an object to a type by putting it before an expression: + +~~~PowerShell +[int]"1" +~~~ + +If the object cannot be cast, you will get an exception. + +To see if you can cast an object, use the -as operator + +~~~PowerShell +"1" -as [int] +~~~ + From 3f9b068ae145946fc1be271e8450a667d29c4e85 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 03:43:39 +0000 Subject: [PATCH 215/224] Adding Posh.NET.README (Fixes #283) --- docs/Posh/NET/README.md | 63 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/docs/Posh/NET/README.md b/docs/Posh/NET/README.md index 13b595d..07fb835 100644 --- a/docs/Posh/NET/README.md +++ b/docs/Posh/NET/README.md @@ -1,6 +1,69 @@ ## Posh.NET +### What Is .NET? + +.NET is a framework of tools for building almost anything you can imagine. + +PowerShell is built on top of .NET, and makes it easy to interactively explore. + +.NET is object-oriented and strongly typed. + +### $Posh.NET + +Posh makes .NET easier to explore. + +For example, to see all primitive types, just run: + +~~~PowerShell +$Posh.Net.Primitive +~~~ + +To see all attributes, use: + +~~~PowerShell +$Posh.Net.Attribute +~~~ + +To see all possible exceptions, use: + +~~~PowerShell +$Posh.Net.Exceptions +~~~ + +To see everything $Posh.Net makes easier, pipe it to `Get-Member` + +~~~PowerShell +$Posh.Net | Get-Member +~~~ + +### .NET Types in PowerShell + +You can reference any public .NET type in PowerShell by putting it within brackets: + +~~~PowerShell +[int] +~~~ + +You can see if an object is a type using the -is operator: + +~~~PowerShell +1 -is [int] +~~~ + +You can cast an object to a type by putting it before an expression: + +~~~PowerShell +[int]"1" +~~~ + +If the object cannot be cast, you will get an exception. + +To see if you can cast an object, use the -as operator + +~~~PowerShell +"1" -as [int] +~~~ ### Script Methods From f360ae33bf2efc5719d246ede4b8e1f50bc1e9a3 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 27 Sep 2023 21:03:42 -0700 Subject: [PATCH 216/224] Adding Posh.NET Formatting (Fixes #304) --- Build/Posh.ezout.ps1 | 2 +- Types/Posh.NET/Posh.NET.format.ps1 | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 Types/Posh.NET/Posh.NET.format.ps1 diff --git a/Build/Posh.ezout.ps1 b/Build/Posh.ezout.ps1 index ac01fb0..461efbf 100644 --- a/Build/Posh.ezout.ps1 +++ b/Build/Posh.ezout.ps1 @@ -7,7 +7,7 @@ Push-Location $myRoot $formatting = @( # Add your own Write-FormatView here, # or put them in a Formatting or Views directory - foreach ($potentialDirectory in 'Formatting','Views') { + foreach ($potentialDirectory in 'Formatting','Views','Types') { Join-Path $myRoot $potentialDirectory | Get-ChildItem -ea ignore | Import-FormatView -FilePath {$_.Fullname} diff --git a/Types/Posh.NET/Posh.NET.format.ps1 b/Types/Posh.NET/Posh.NET.format.ps1 new file mode 100644 index 0000000..7347da1 --- /dev/null +++ b/Types/Posh.NET/Posh.NET.format.ps1 @@ -0,0 +1,21 @@ +Write-FormatView -TypeName Posh.NET -Action { + Write-FormatViewExpression -Style 'Foreground.Green', 'Bold' -ScriptBlock { + Show-Markdown -InputObject $_.README + } + + Write-FormatViewExpression -Newline + + Write-FormatViewExpression -ScriptBlock { + [PSCustomObject][Ordered]@{ + 'Assemblies' = $_.Assemblies.Count + 'Types' = $_.Type.Count + 'Public Types' = $_.Public.Count + 'Private Types' = $_.Private.Count + 'Primitive Types'= $_.Primitive.Count + 'Generic Types' = $_.Generic.Count + 'Enums Types' = $_.Enum.Count + 'Value Types' = $_.ValueType.Count + 'Abstract Types' = $_.Abstract.Count + } | Format-List | Out-String + } +} \ No newline at end of file From 707405beb8021660f5099bf77e64e842553d620b Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 04:05:00 +0000 Subject: [PATCH 217/224] Adding Posh.NET Formatting (Fixes #304) --- Posh.format.ps1xml | 70 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/Posh.format.ps1xml b/Posh.format.ps1xml index ab5f2ce..2190769 100644 --- a/Posh.format.ps1xml +++ b/Posh.format.ps1xml @@ -6992,5 +6992,75 @@ $module = $_ + + Posh.NET + + Posh.NET + + + + + + + if ($psStyle) { + @(foreach ($styleProp in 'Foreground.Green','Bold') { + + if ($styleProp -match '^\$') { + $ExecutionContext.SessionState.InvokeCommand.InvokeScript($styleProp) + } + elseif ($styleProp -match '\.') { + $targetObject = $psStyle + foreach ($dotProperty in $styleProp -split '(?<!\.)\.') { + if ($targetObject.Item -is [Management.Automation.PSMethodInfo] -or + $targetObject -is [Collections.IDictionary]) { + $targetObject = $targetObject[$dotProperty] + } else { + $targetObject = $targetObject.$dotProperty + } + } + if ($targetObject) { + $targetObject + } + } + else { + $psStyle.$styleProp + } + + }) -ne '' -join '' +} + + + + Show-Markdown -InputObject $_.README + + + + + if ($PSStyle) { + $PSStyle.Reset + } + + + + + + [PSCustomObject][Ordered]@{ + 'Assemblies' = $_.Assemblies.Count + 'Types' = $_.Type.Count + 'Public Types' = $_.Public.Count + 'Private Types' = $_.Private.Count + 'Primitive Types'= $_.Primitive.Count + 'Generic Types' = $_.Generic.Count + 'Enums Types' = $_.Enum.Count + 'Value Types' = $_.ValueType.Count + 'Abstract Types' = $_.Abstract.Count + } | Format-List | Out-String + + + + + + + From e4e4ea5fa0f496ea1dd2f6d92356cc227f9d65af Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 27 Sep 2023 21:06:51 -0700 Subject: [PATCH 218/224] Adding Posh.NET.Refresh() (Fixes #305) --- Types/Posh.NET/Refresh.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Types/Posh.NET/Refresh.ps1 diff --git a/Types/Posh.NET/Refresh.ps1 b/Types/Posh.NET/Refresh.ps1 new file mode 100644 index 0000000..e2c5db5 --- /dev/null +++ b/Types/Posh.NET/Refresh.ps1 @@ -0,0 +1,6 @@ +foreach ($property in $this.psobject.properties) { + if ($property -is [psnoteproperty] -and + $property.Name -match '^\.') { + $property.Value = @() + } +} \ No newline at end of file From c0879ccfb73118aff1190c1822c15776757ea446 Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 04:08:08 +0000 Subject: [PATCH 219/224] Adding Posh.NET.Refresh() (Fixes #305) --- Posh.types.ps1xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Posh.types.ps1xml b/Posh.types.ps1xml index f33d399..0f4c83e 100644 --- a/Posh.types.ps1xml +++ b/Posh.types.ps1xml @@ -1743,6 +1743,17 @@ Pipe `$posh.Input` into `Get-Member` to see what it can do. ValueTypes ValueType + + Refresh + + Abstract From e2f5d9345bc84b71e8598695c4c42dd5c896097b Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 27 Sep 2023 21:38:49 -0700 Subject: [PATCH 220/224] Updating Posh.PSA.ps1 (Fixes #306) --- Build/Posh.PSA.ps1 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Build/Posh.PSA.ps1 b/Build/Posh.PSA.ps1 index 7501a27..31b11f8 100644 --- a/Build/Posh.PSA.ps1 +++ b/Build/Posh.PSA.ps1 @@ -25,7 +25,7 @@ $isMergeToMain = $gitHubEvent.ref -eq 'refs/heads/main' if ($isMergeToMain) { - $psaModule = Get-Module PSA + Import-Module .\Posh.psd1 -Global $fullMessage = @( "PowerShell just got a little more Posh", @@ -33,13 +33,11 @@ if ($isMergeToMain) { "PowerShell just got more color in it's cheeks", "PowerShell just got a bit more pretty" | Get-Random - "Posh $($psaModule.Version) is out!" + "Posh $($posh.Version) is out!" ) Send-AtProto -Text $fullMessage -WebCard @{ Url = "https://github.com/StartAutomating/Posh" - } -LinkPattern @{ - "Posh" = "https://github.com/StartAutomating/Posh" } return From e0ddffd689f68a7ac691a7871a13e18c4b5cbda5 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 27 Sep 2023 21:50:11 -0700 Subject: [PATCH 221/224] Updating Posh Format (mentioning $Posh.Net) (Fixes #282) --- {Formatting => Types}/Posh/Posh.format.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename {Formatting => Types}/Posh/Posh.format.ps1 (90%) diff --git a/Formatting/Posh/Posh.format.ps1 b/Types/Posh/Posh.format.ps1 similarity index 90% rename from Formatting/Posh/Posh.format.ps1 rename to Types/Posh/Posh.format.ps1 index 59de77b..fc69f32 100644 --- a/Formatting/Posh/Posh.format.ps1 +++ b/Types/Posh/Posh.format.ps1 @@ -18,11 +18,12 @@ Write-FormatView -TypeName Posh -Action { Write-FormatViewExpression -Newline Write-FormatViewExpression -Newline - Write-FormatViewExpression -Style 'Foreground.Magenta' -ScriptBlock { + Write-FormatViewExpression -Style 'Foreground.Magenta' -ScriptBlock { "To see PowerShell tips, try `$posh.Tips", "To see PowerShell links, use `$Posh.Links", "To see PowerShell module recommendations, get `$Posh.Recommends", - "To see PowerShell news, get `$Posh.News" | Get-Random + "To see PowerShell news, get `$Posh.News", + "To explore .NET in Powershell, try `$Posh.Net" | Get-Random } Write-FormatViewExpression -Newline From 69932127bea52821b61c4da0e98b2322a8e3fedc Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 04:51:29 +0000 Subject: [PATCH 222/224] Updating Posh Format (mentioning $Posh.Net) (Fixes #282) --- Posh.format.ps1xml | 705 +++++++++++++++++++++++---------------------- 1 file changed, 353 insertions(+), 352 deletions(-) diff --git a/Posh.format.ps1xml b/Posh.format.ps1xml index 2190769..994f6fa 100644 --- a/Posh.format.ps1xml +++ b/Posh.format.ps1xml @@ -3306,138 +3306,88 @@ if ($Request -or $Host.UI.SupportsHTML) { - Posh + Posh.Host.Cursor - Posh + Posh.Host.Cursor + + + + + + + + + + + + + + + $_.Position.Row + + + $_.Position.Column + + + + + + + + Posh.Host + + Posh.Host + + + + + + + + + + + + + + + + + + Name + + + CurrentCulture + + + Width + + + Height + + + + + + + + Posh.Input + + Posh.Input - - if ($psStyle) { - @(foreach ($styleProp in 'Foreground.Blue','Bold') { - - if ($styleProp -match '^\$') { - $ExecutionContext.SessionState.InvokeCommand.InvokeScript($styleProp) - } - elseif ($styleProp -match '\.') { - $targetObject = $psStyle - foreach ($dotProperty in $styleProp -split '(?<!\.)\.') { - if ($targetObject.Item -is [Management.Automation.PSMethodInfo] -or - $targetObject -is [Collections.IDictionary]) { - $targetObject = $targetObject[$dotProperty] - } else { - $targetObject = $targetObject.$dotProperty - } - } - if ($targetObject) { - $targetObject - } - } - else { - $psStyle.$styleProp - } - - }) -ne '' -join '' -} - - - Name - - - - if ($PSStyle) { - $PSStyle.Reset - } - - - - if ($psStyle) { - @(foreach ($styleProp in 'Foreground.Cyan') { - - if ($styleProp -match '^\$') { - $ExecutionContext.SessionState.InvokeCommand.InvokeScript($styleProp) - } - elseif ($styleProp -match '\.') { - $targetObject = $psStyle - foreach ($dotProperty in $styleProp -split '(?<!\.)\.') { - if ($targetObject.Item -is [Management.Automation.PSMethodInfo] -or - $targetObject -is [Collections.IDictionary]) { - $targetObject = $targetObject[$dotProperty] - } else { - $targetObject = $targetObject.$dotProperty - } - } - if ($targetObject) { - $targetObject - } - } - else { - $psStyle.$styleProp - } - - }) -ne '' -join '' -} - - @ - - - if ($PSStyle) { - $PSStyle.Reset - } - - - - Version - VersionControl - - - - - if ($psStyle) { - @(foreach ($styleProp in 'Foreground.Blue','Italic') { - - if ($styleProp -match '^\$') { - $ExecutionContext.SessionState.InvokeCommand.InvokeScript($styleProp) - } - elseif ($styleProp -match '\.') { - $targetObject = $psStyle - foreach ($dotProperty in $styleProp -split '(?<!\.)\.') { - if ($targetObject.Item -is [Management.Automation.PSMethodInfo] -or - $targetObject -is [Collections.IDictionary]) { - $targetObject = $targetObject[$dotProperty] - } else { - $targetObject = $targetObject.$dotProperty - } - } - if ($targetObject) { - $targetObject - } - } - else { - $psStyle.$styleProp - } - - }) -ne '' -join '' -} - - $_.Description + Show-Markdown -InputObject $_.README - - - if ($PSStyle) { - $PSStyle.Reset - } - - if ($psStyle) { - @(foreach ($styleProp in 'Foreground.Green') { + @(foreach ($styleProp in 'Foreground.Cyan') { if ($styleProp -match '^\$') { $ExecutionContext.SessionState.InvokeCommand.InvokeScript($styleProp) @@ -3465,7 +3415,7 @@ if ($Request -or $Host.UI.SupportsHTML) { - $_.PrivateData.ExtendedDescription + "To reset the input, use `$posh.Input.Clear()" @@ -3478,53 +3428,13 @@ if ($Request -or $Host.UI.SupportsHTML) { - if ($psStyle) { - @(foreach ($styleProp in 'Foreground.Magenta') { - - if ($styleProp -match '^\$') { - $ExecutionContext.SessionState.InvokeCommand.InvokeScript($styleProp) - } - elseif ($styleProp -match '\.') { - $targetObject = $psStyle - foreach ($dotProperty in $styleProp -split '(?<!\.)\.') { - if ($targetObject.Item -is [Management.Automation.PSMethodInfo] -or - $targetObject -is [Collections.IDictionary]) { - $targetObject = $targetObject[$dotProperty] - } else { - $targetObject = $targetObject.$dotProperty - } - } - if ($targetObject) { - $targetObject - } - } - else { - $psStyle.$styleProp - } - - }) -ne '' -join '' -} - - - - "To see PowerShell tips, try `$posh.Tips", - "To see PowerShell links, use `$Posh.Links", - "To see PowerShell module recommendations, get `$Posh.Recommends", - "To see PowerShell news, get `$Posh.News" | Get-Random + + + $_.Stack.Count - - - - if ($PSStyle) { - $PSStyle.Reset - } - - - - - + if ($psStyle) { - @(foreach ($styleProp in 'Foreground.Cyan') { + @(foreach ($styleProp in 'Foreground.Yellow','Italic') { if ($styleProp -match '^\$') { $ExecutionContext.SessionState.InvokeCommand.InvokeScript($styleProp) @@ -3551,209 +3461,34 @@ if ($Request -or $Host.UI.SupportsHTML) { } + + + $_.Stack.Count + + -" -To see everything Posh can do: `$posh | Get-Member -" + ('The input has ' + $_.Stack.Count + ' modification(s)') + + + $_.Stack.Count + + if ($PSStyle) { $PSStyle.Reset } - - Posh.Host.Cursor - - Posh.Host.Cursor - - - - - - - - - - - - - - - $_.Position.Row - - - $_.Position.Column - - - - - - - - Posh.Host - - Posh.Host - - - - - - - - - - - - - - - - - - Name - - - CurrentCulture - - - Width - - - Height - - - - - - - - Posh.Input - - Posh.Input - - - - - - - - Show-Markdown -InputObject $_.README - - - - - if ($psStyle) { - @(foreach ($styleProp in 'Foreground.Cyan') { - - if ($styleProp -match '^\$') { - $ExecutionContext.SessionState.InvokeCommand.InvokeScript($styleProp) - } - elseif ($styleProp -match '\.') { - $targetObject = $psStyle - foreach ($dotProperty in $styleProp -split '(?<!\.)\.') { - if ($targetObject.Item -is [Management.Automation.PSMethodInfo] -or - $targetObject -is [Collections.IDictionary]) { - $targetObject = $targetObject[$dotProperty] - } else { - $targetObject = $targetObject.$dotProperty - } - } - if ($targetObject) { - $targetObject - } - } - else { - $psStyle.$styleProp - } - - }) -ne '' -join '' -} - - - - "To reset the input, use `$posh.Input.Clear()" - - - - - if ($PSStyle) { - $PSStyle.Reset - } - - - - - - - - $_.Stack.Count - - - if ($psStyle) { - @(foreach ($styleProp in 'Foreground.Yellow','Italic') { - - if ($styleProp -match '^\$') { - $ExecutionContext.SessionState.InvokeCommand.InvokeScript($styleProp) - } - elseif ($styleProp -match '\.') { - $targetObject = $psStyle - foreach ($dotProperty in $styleProp -split '(?<!\.)\.') { - if ($targetObject.Item -is [Management.Automation.PSMethodInfo] -or - $targetObject -is [Collections.IDictionary]) { - $targetObject = $targetObject[$dotProperty] - } else { - $targetObject = $targetObject.$dotProperty - } - } - if ($targetObject) { - $targetObject - } - } - else { - $psStyle.$styleProp - } - - }) -ne '' -join '' -} - - - - - $_.Stack.Count - - - - ('The input has ' + $_.Stack.Count + ' modification(s)') - - - - - - $_.Stack.Count - - - - if ($PSStyle) { - $PSStyle.Reset - } - - - - - - - - - Posh.Module.Link + Posh.Module.Link Posh.Module.Link @@ -6992,6 +6727,272 @@ $module = $_ + + Posh + + Posh + + + + + + + if ($psStyle) { + @(foreach ($styleProp in 'Foreground.Blue','Bold') { + + if ($styleProp -match '^\$') { + $ExecutionContext.SessionState.InvokeCommand.InvokeScript($styleProp) + } + elseif ($styleProp -match '\.') { + $targetObject = $psStyle + foreach ($dotProperty in $styleProp -split '(?<!\.)\.') { + if ($targetObject.Item -is [Management.Automation.PSMethodInfo] -or + $targetObject -is [Collections.IDictionary]) { + $targetObject = $targetObject[$dotProperty] + } else { + $targetObject = $targetObject.$dotProperty + } + } + if ($targetObject) { + $targetObject + } + } + else { + $psStyle.$styleProp + } + + }) -ne '' -join '' +} + + + Name + + + + if ($PSStyle) { + $PSStyle.Reset + } + + + + if ($psStyle) { + @(foreach ($styleProp in 'Foreground.Cyan') { + + if ($styleProp -match '^\$') { + $ExecutionContext.SessionState.InvokeCommand.InvokeScript($styleProp) + } + elseif ($styleProp -match '\.') { + $targetObject = $psStyle + foreach ($dotProperty in $styleProp -split '(?<!\.)\.') { + if ($targetObject.Item -is [Management.Automation.PSMethodInfo] -or + $targetObject -is [Collections.IDictionary]) { + $targetObject = $targetObject[$dotProperty] + } else { + $targetObject = $targetObject.$dotProperty + } + } + if ($targetObject) { + $targetObject + } + } + else { + $psStyle.$styleProp + } + + }) -ne '' -join '' +} + + @ + + + if ($PSStyle) { + $PSStyle.Reset + } + + + + Version + VersionControl + + + + + if ($psStyle) { + @(foreach ($styleProp in 'Foreground.Blue','Italic') { + + if ($styleProp -match '^\$') { + $ExecutionContext.SessionState.InvokeCommand.InvokeScript($styleProp) + } + elseif ($styleProp -match '\.') { + $targetObject = $psStyle + foreach ($dotProperty in $styleProp -split '(?<!\.)\.') { + if ($targetObject.Item -is [Management.Automation.PSMethodInfo] -or + $targetObject -is [Collections.IDictionary]) { + $targetObject = $targetObject[$dotProperty] + } else { + $targetObject = $targetObject.$dotProperty + } + } + if ($targetObject) { + $targetObject + } + } + else { + $psStyle.$styleProp + } + + }) -ne '' -join '' +} + + + + $_.Description + + + + + if ($PSStyle) { + $PSStyle.Reset + } + + + + + if ($psStyle) { + @(foreach ($styleProp in 'Foreground.Green') { + + if ($styleProp -match '^\$') { + $ExecutionContext.SessionState.InvokeCommand.InvokeScript($styleProp) + } + elseif ($styleProp -match '\.') { + $targetObject = $psStyle + foreach ($dotProperty in $styleProp -split '(?<!\.)\.') { + if ($targetObject.Item -is [Management.Automation.PSMethodInfo] -or + $targetObject -is [Collections.IDictionary]) { + $targetObject = $targetObject[$dotProperty] + } else { + $targetObject = $targetObject.$dotProperty + } + } + if ($targetObject) { + $targetObject + } + } + else { + $psStyle.$styleProp + } + + }) -ne '' -join '' +} + + + + $_.PrivateData.ExtendedDescription + + + + + if ($PSStyle) { + $PSStyle.Reset + } + + + + + + if ($psStyle) { + @(foreach ($styleProp in 'Foreground.Magenta') { + + if ($styleProp -match '^\$') { + $ExecutionContext.SessionState.InvokeCommand.InvokeScript($styleProp) + } + elseif ($styleProp -match '\.') { + $targetObject = $psStyle + foreach ($dotProperty in $styleProp -split '(?<!\.)\.') { + if ($targetObject.Item -is [Management.Automation.PSMethodInfo] -or + $targetObject -is [Collections.IDictionary]) { + $targetObject = $targetObject[$dotProperty] + } else { + $targetObject = $targetObject.$dotProperty + } + } + if ($targetObject) { + $targetObject + } + } + else { + $psStyle.$styleProp + } + + }) -ne '' -join '' +} + + + + "To see PowerShell tips, try `$posh.Tips", + "To see PowerShell links, use `$Posh.Links", + "To see PowerShell module recommendations, get `$Posh.Recommends", + "To see PowerShell news, get `$Posh.News", + "To explore .NET in Powershell, try `$Posh.Net" | Get-Random + + + + + if ($PSStyle) { + $PSStyle.Reset + } + + + + + + if ($psStyle) { + @(foreach ($styleProp in 'Foreground.Cyan') { + + if ($styleProp -match '^\$') { + $ExecutionContext.SessionState.InvokeCommand.InvokeScript($styleProp) + } + elseif ($styleProp -match '\.') { + $targetObject = $psStyle + foreach ($dotProperty in $styleProp -split '(?<!\.)\.') { + if ($targetObject.Item -is [Management.Automation.PSMethodInfo] -or + $targetObject -is [Collections.IDictionary]) { + $targetObject = $targetObject[$dotProperty] + } else { + $targetObject = $targetObject.$dotProperty + } + } + if ($targetObject) { + $targetObject + } + } + else { + $psStyle.$styleProp + } + + }) -ne '' -join '' +} + + + +" +To see everything Posh can do: `$posh | Get-Member +" + + + + + if ($PSStyle) { + $PSStyle.Reset + } + + + + + + + + Posh.NET From dc722bacb2d0e93bdd52afe97c10ce07c696eb85 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Wed, 27 Sep 2023 21:58:18 -0700 Subject: [PATCH 223/224] Updating Posh Module Version [0.2] and CHANGELOG --- CHANGELOG.md | 23 +++++++++++++++++++++++ Posh.psd1 | 28 +++++++++++++++++++--------- 2 files changed, 42 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6d3d64..83b1fe4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,26 @@ +## Posh 0.2: Posh.NET: + +Added Posh.Net Psuedotype (#282) + +This makes .NET types easier to explore in Posh + +For example: + +~~~PowerShell +$Posh.NET.Assembly # Get all assemblies +$Posh.NET.Type # Get all types +$Posh.Net.Generic # Get all generic types +$Posh.Net.Attribute # Get all attributes +~~~ + +For a full list of everything you can do, run: + +~~~PowerShell +$Posh.Net | Get-Member +~~~ + +--- + ## Posh 0.1.9: Posh Community * New Blog: Christian Ritter ( thanks @HCRitter ! ) diff --git a/Posh.psd1 b/Posh.psd1 index a113510..a644a94 100644 --- a/Posh.psd1 +++ b/Posh.psd1 @@ -1,5 +1,5 @@ @{ - ModuleVersion = '0.1.9' + ModuleVersion = '0.2' FormatsToProcess = 'Posh.format.ps1xml' TypesToProcess = 'Posh.types.ps1xml' RootModule = 'Posh.psm1' @@ -15,22 +15,32 @@ IconURI = 'https://raw.githubusercontent.com/StartAutomating/Posh/main/Assets/Posh.png' Tags = 'Posh', '.ps1xml', 'Format','Output','Types', 'Colorized', 'Prompt', 'Customization' ReleaseNotes = @' -## Posh 0.1.9: Posh Community +## Posh 0.2: Posh.NET: -* New Blog: Christian Ritter ( thanks @HCRitter ! ) +Added Posh.Net Psuedotype (#282) -* Additions to all community modules (when Posh is also loaded) - * PSModuleInfo.Presentation (#262) - * Module Profiles (#273) - * Installable Recommendations (#233) +This makes .NET types easier to explore in Posh -* Posh now runs any .ModuleProfiles at the end of it's import (#164) +For example: -* Integrated [PSA](https://github.com/StartAutomating/PSA) for automated annoucements on BlueSky. +~~~PowerShell +$Posh.NET.Assembly # Get all assemblies +$Posh.NET.Type # Get all types +$Posh.Net.Generic # Get all generic types +$Posh.Net.Attribute # Get all attributes +~~~ + +For a full list of everything you can do, run: + +~~~PowerShell +$Posh.Net | Get-Member +~~~ --- More History in [CHANGELOG](https://github.com/StartAutomating/Posh/blob/main/CHANGELOG.md) + +Like It? Star It! Love It? Support It! '@ } FileTypes = @{ From 93f34e75b0b479cf2d78822573b9263f0ccc82cf Mon Sep 17 00:00:00 2001 From: StartAutomating Date: Thu, 28 Sep 2023 04:59:55 +0000 Subject: [PATCH 224/224] Updating Posh Module Version [0.2] and CHANGELOG --- docs/CHANGELOG.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index b6d3d64..83b1fe4 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,3 +1,26 @@ +## Posh 0.2: Posh.NET: + +Added Posh.Net Psuedotype (#282) + +This makes .NET types easier to explore in Posh + +For example: + +~~~PowerShell +$Posh.NET.Assembly # Get all assemblies +$Posh.NET.Type # Get all types +$Posh.Net.Generic # Get all generic types +$Posh.Net.Attribute # Get all attributes +~~~ + +For a full list of everything you can do, run: + +~~~PowerShell +$Posh.Net | Get-Member +~~~ + +--- + ## Posh 0.1.9: Posh Community * New Blog: Christian Ritter ( thanks @HCRitter ! )