full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/PowerShellGallery/PSApigeeEdge/0.2.15/Public/Get-EdgeEnvironment.ps1 | Get-EdgeEnvironment.ps1 | Function Get-EdgeEnvironment {
<#
.SYNOPSIS
Get one or more environments from Apigee Edge
.DESCRIPTION
Get one or more environments from Apigee Edge
.PARAMETER Name
The name of the environment to retrieve.
The default is to list all environments.
.PARAMETER Org
... |
PowerShellCorpus/PowerShellGallery/PSApigeeEdge/0.2.15/Public/Update-EdgeKvmEntry.ps1 | Update-EdgeKvmEntry.ps1 | Function Update-EdgeKvmEntry {
<#
.SYNOPSIS
Update a named entry in a key-value map in Apigee Edge.
.DESCRIPTION
Update a named entry in a key-value map in Apigee Edge.
The KVM must exist, and the entry must exist. This works only on CPS-enabled organizations.
.PARAMETER Name
... |
PowerShellCorpus/PowerShellGallery/PSApigeeEdge/0.2.15/Public/Get-EdgeStashedAdminToken.ps1 | Get-EdgeStashedAdminToken.ps1 | function Get-EdgeStashedAdminToken
{
<#
.SYNOPSIS
Retrieve a stashed OAuth token for Edge Administration.
.DESCRIPTION
Retrieve an OAuth token for Edge Administration, from the stash. This works only with Edge SaaS.
You must have previously called Set-EdgeConnection to specify the u... |
PowerShellCorpus/PowerShellGallery/PSApigeeEdge/0.2.15/Public/Delete-EdgeKvmEntry.ps1 | Delete-EdgeKvmEntry.ps1 | Function Delete-EdgeKvmEntry {
<#
.SYNOPSIS
Delete an entry from a Key-Value map in Apigee Edge.
.DESCRIPTION
Delete an entry from a Key-Value map in Apigee Edge.
This works only in CPS-enabled Edge organizations.
.PARAMETER Name
Required. The name of the KVM from whic... |
PowerShellCorpus/PowerShellGallery/PSApigeeEdge/0.2.15/Public/Get-EdgeApiProduct.ps1 | Get-EdgeApiProduct.ps1 | Function Get-EdgeApiProduct {
<#
.SYNOPSIS
Get one or more api products from Apigee Edge
.DESCRIPTION
Get one or more api products from Apigee Edge
.PARAMETER Name
The name of the apiproduct to retrieve.
The default is to list all apiproducts.
.PARAMETER Org
... |
PowerShellCorpus/PowerShellGallery/PSApigeeEdge/0.2.15/Public/Create-EdgeApiProduct.ps1 | Create-EdgeApiProduct.ps1 | Function Create-EdgeApiProduct {
<#
.SYNOPSIS
Create a API Product in Apigee Edge.
.DESCRIPTION
Create a API Product in Apigee Edge.
.PARAMETER Name
The name of the product. It must be unique for the organization.
.PARAMETER Environments
An array of strings, the na... |
PowerShellCorpus/PowerShellGallery/PSApigeeEdge/0.2.15/Public/Set-EdgeConnection.ps1 | Set-EdgeConnection.ps1 | Function Set-EdgeConnection {
<#
.SYNOPSIS
Sets connection information for Apigee Edge administrative actions
.DESCRIPTION
Sets connection information, including Organization name, and user credentials, for Apigee Edge administrative actions.
.PARAMETER File
Optional. A file th... |
PowerShellCorpus/PowerShellGallery/PSApigeeEdge/0.2.15/Public/Create-EdgeKvmEntry.ps1 | Create-EdgeKvmEntry.ps1 | Function Create-EdgeKvmEntry {
<#
.SYNOPSIS
Create a named entry in an existing key-value map in Apigee Edge.
.DESCRIPTION
Create a named entry in an existing key-value map in Apigee Edge.
The KVM must exist, and the entry must not exist. This works only on CPS-enabled organizations... |
PowerShellCorpus/PowerShellGallery/PSApigeeEdge/0.2.15/Public/Get-EdgeSharedFlow.ps1 | Get-EdgeSharedFlow.ps1 | Function Get-EdgeSharedFlow {
<#
.SYNOPSIS
Get one or more sharedflows from Apigee Edge.
.DESCRIPTION
Get one or more sharedflows from Apigee Edge.
.PARAMETER Name
Optional. The name of the sharedflow to retrieve.
The default is to list all of them.
.PARAMETER Revi... |
PowerShellCorpus/PowerShellGallery/PSApigeeEdge/0.2.15/Public/Update-EdgeDeveloper.ps1 | Update-EdgeDeveloper.ps1 | Function Update-EdgeDeveloper {
<#
.SYNOPSIS
Update a developer in Apigee Edge.
.DESCRIPTION
Update a Developer in Apigee Edge. When invoking this cmdlet you need
to specify the firstname, last name, email, and username, at a minimum. You
may also specify attributes.
... |
PowerShellCorpus/PowerShellGallery/cIBMWebSphereAppServer/1.1.3/Examples/Install-WASND.ps1 | Install-WASND.ps1 | Configuration WASND
{
Import-DscResource -ModuleName 'PSDesiredStateConfiguration'
Import-DSCResource -ModuleName 'cIBMInstallationManager'
Import-DSCResource -ModuleName 'cIBMWebSphereAppServer'
Package SevenZip {
Ensure = 'Present'
Name = '7-Zip 9.20 (x64 edition)'
ProductId = ... |
PowerShellCorpus/PowerShellGallery/cIBMWebSphereAppServer/1.1.3/Classes/WebSphereTopology.ps1 | WebSphereTopology.ps1 | Class WebSphereServer {
[String] $ServerName
[String] $ServerConfigDir
[bool] $IsNodeAgent = $false
[bool] $IsDmgr = $false
WebSphereServer () {}
WebSphereServer ([String] $Name) {
$this.ServerName = $Name
}
[Bool] InitializeFromServerDir([String] $serverDir) {
[bool] ... |
PowerShellCorpus/PowerShellGallery/PSHealthZ/1.0.0/Private/Invoke-ConsoleCommand.ps1 | Invoke-ConsoleCommand.ps1 | # From Carbon module (get-carbon.org)
# https://bitbucket.org/splatteredbits/carbon/src/05b30be36ba4105147c8a9cbcad815a366e9f553/Carbon/Functions/Invoke-ConsoleCommand.ps1?at=default&fileviewer=file-view-default
function Invoke-ConsoleCommand {
[CmdletBinding(SupportsShouldProcess)]
param(
[Param... |
PowerShellCorpus/PowerShellGallery/PSHealthZ/1.0.0/Public/New-HealthZToken.ps1 | New-HealthZToken.ps1 |
function New-HealthzToken {
<#
.SYNOPSIS
Generates an authentication token to secure a PSHealthZ listener with.
.DESCRIPTION
Generates an authentication token to secure a PSHealthZ listener with.
.EXAMPLE
$token = New-HealthZToken
Create a new token
.EXAM... |
PowerShellCorpus/PowerShellGallery/PSHealthZ/1.0.0/Public/Start-HealthZListener.ps1 | Start-HealthZListener.ps1 | function Start-HealthZListener {
<#
.SYNOPSIS
Starts a PSHealthZ listener instance.
.DESCRIPTION
Starts a PSHealthZ listener instance.
.PARAMETER Port
The port the listener will listen on.
.PARAMETER Path
The URl path to listen on (e.g., '/health').
.PAR... |
PowerShellCorpus/PowerShellGallery/PSHealthZ/1.0.0/Public/Get-HealthZListener.ps1 | Get-HealthZListener.ps1 |
function Get-HealthZListener {
<#
.SYNOPSIS
Gets running PSHealthZ listeners
.DESCRIPTION
Gets all currently running PSHealthZ listeners.
.PARAMETER Id
The Id of the listener to get.
.EXAMPLE
Get-HealthZListener
Gets all currently running PSHealthZ listeners... |
PowerShellCorpus/PowerShellGallery/PSHealthZ/1.0.0/Public/Stop-HealthZListener.ps1 | Stop-HealthZListener.ps1 |
function Stop-HealthZListener {
<#
.SYNOPSIS
Stop a currently running PSHealthZ listener.
.DESCRIPTION
Stop a currently running PSHealthZ listener.
.PARAMETER Id
The Id of the listener to stop.
.EXAMPLE
Stop-HealthZListener -Id 101
Stop the liste... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Private/xCheckGlobalBricksetConnection.ps1 | xCheckGlobalBricksetConnection.ps1 | function xCheckGlobalBricksetConnection {
<#
.SYNOPSIS
Checks for the presence of $Global:BricksetConnection
.DESCRIPTION
Checks for the presence of $Global:BricksetConnection
.INPUTS
None
.OUTPUTS
None
.EXAMPLE
xCheckGlobalBricksetConnection
#>
[CmdletBind... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Private/xCheckUserHash.ps1 | xCheckUserHash.ps1 | function xCheckUserHash{
<#
.SYNOPSIS
Checks for the presence of $Global:BricksetConnection.UserHash
.DESCRIPTION
Checks for the presence of $Global:BricksetConnection.UserHash
.INPUTS
None
.OUTPUTS
None
.EXAMPLE
xCheckUserHash
#>
[CmdletBinding()]
P... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Get-BricksetRecentlyUpdatedSet.ps1 | Get-BricksetRecentlyUpdatedSet.ps1 | function Get-BricksetRecentlyUpdatedSet {
<#
.SYNOPSIS
Get Brickset Sets that have recently changed
.DESCRIPTION
Get Brickset Sets that have recently changed
.PARAMETER HoursAgo
Number of hours to search back for
.PARAMETER DaysAgo
Number of days to search back for
... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Disconnect-Brickset.ps1 | Disconnect-Brickset.ps1 | function Disconnect-Brickset {
<#
.SYNOPSIS
Disconnect from the Brickset API
.DESCRIPTION
Disconnect from the Brickset API by removing the global BricksetConnection variable from PowerShell
.EXAMPLE
Disconnect-Brickset
.EXAMPLE
Disconnect-Brickset -Confirm:$false
#>
[Cmd... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Get-BricksetSetOwned.ps1 | Get-BricksetSetOwned.ps1 | function Get-BricksetSetOwned {
<#
.SYNOPSIS
Get Brickset Sets Owned
.DESCRIPTION
Get Brickset Sets Owned
.PARAMETER OrderBy
Specify Sort Order
.PARAMETER PageSize
Specify how many records to return
.INPUTS
System.String.
System.Int.
.OUTPUTS
... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Set-BricksetSetUserNotes.ps1 | Set-BricksetSetUserNotes.ps1 | function Set-BricksetSetUserNotes {
<#
.SYNOPSIS
Set the User Notes for a Brickset Set.
.DESCRIPTION
Set the User Notes for a Brickset Set.
.PARAMETER SetId
Brickset SetId
.PARAMETER Notes
200 chars of text to add to the User Notes field of a Set
.INPUTS
System... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Set-BricksetMinifgCollectionWanted.ps1 | Set-BricksetMinifgCollectionWanted.ps1 | function Set-BricksetMinifgCollectionWanted {
<#
.SYNOPSIS
Set a Brickset Minifg to Wanted status
.DESCRIPTION
Set a Brickset Minfig to Wanted status.
.PARAMETER MinifgNumber
Brickset MinifgNumber
.INPUTS
System.String
.OUTPUTS
None
.EXAMPLE
Set... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Set-BricksetMinifgCollectionOwned.ps1 | Set-BricksetMinifgCollectionOwned.ps1 | function Set-BricksetMinifgCollectionOwned {
<#
.SYNOPSIS
Set a Brickset Minifg to Owned status
.DESCRIPTION
Set a Brickset Minfig to Owned status. Include the number of sets owned.
.PARAMETER MinifgNumber
Brickset MinifgNumber
.PARAMETER QtyOwned
Quantity Owned
... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Get-BricksetSubtheme.ps1 | Get-BricksetSubtheme.ps1 | function Get-BricksetSubtheme {
<#
.SYNOPSIS
Get Brickset Subthemes for a given Theme
.DESCRIPTION
Get Brickset Subthemes for a given Theme
.PARAMETER Theme
Brickset Theme
.INPUTS
System.String.
.OUTPUTS
Brickset.subthemes
.EXAMPLE
Get-Brick... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Get-BricksetMinifigCollectionOwned.ps1 | Get-BricksetMinifigCollectionOwned.ps1 | function Get-BricksetMinifigCollectionOwned {
<#
.SYNOPSIS
Get Brickset Minifg Collection Owned
.DESCRIPTION
Get Brickset Minifg Collection Owned
.INPUTS
None
.OUTPUTS
Brickset.minifigCollection
.EXAMPLE
Get-BricksetMinifigCollectionOwned
#>
[CmdletBindin... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Get-BricksetSetAdditionalImage.ps1 | Get-BricksetSetAdditionalImage.ps1 | function Get-BricksetSetAdditionalImage {
<#
.SYNOPSIS
Get Brickset Set Additional Images
.DESCRIPTION
Get Brickset Set Additional Images
.PARAMETER SetId
Brickset SetId (not the Lego Set Number)
.INPUTS
System.String.
.OUTPUTS
Brickset.additionalImages
... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Test-BricksetAPIKey.ps1 | Test-BricksetAPIKey.ps1 | function Test-BricksetAPIKey {
<#
.SYNOPSIS
Test the Brickset API Key
.DESCRIPTION
Test the Brickset API Key
.PARAMETER APIKey
API Key
.INPUTS
System.String.
.OUTPUTS
System.Boolean
.EXAMPLE
Test-BricksetAPIKey -APIKey 'Tk5C-KTA2-Gw2Q'
#>
... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Get-BricksetSet.ps1 | Get-BricksetSet.ps1 | function Get-BricksetSet {
<#
.SYNOPSIS
Get Brickset Sets
.DESCRIPTION
Get Brickset Sets
.PARAMETER Theme
Brickset Theme
.PARAMETER Subtheme
Brickset Subtheme
.PARAMETER Year
Year
.PARAMETER SetNumber
Lego Set Number in the format {number}-{vari... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Get-BricksetSetInstructions.ps1 | Get-BricksetSetInstructions.ps1 | function Get-BricksetSetInstructions {
<#
.SYNOPSIS
Get Brickset Set Instructions
.DESCRIPTION
Get Brickset Set Instructions
.PARAMETER SetId
Brickset SetId (not the Lego Set Number)
.INPUTS
System.String.
.OUTPUTS
Brickset.instructions
.EXAMPLE
... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Set-BricksetSetUnwanted.ps1 | Set-BricksetSetUnwanted.ps1 | function Set-BricksetSetUnwanted {
<#
.SYNOPSIS
Set a Brickset Set to Unwanted status
.DESCRIPTION
Set a Brickset Set to Unwanted status
.PARAMETER SetId
Brickset SetId
.INPUTS
String
.OUTPUTS
None
.EXAMPLE
Set-BricksetSetUnwanted -SetId 26049
... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Get-BricksetSetDetailed.ps1 | Get-BricksetSetDetailed.ps1 | function Get-BricksetSetDetailed {
<#
.SYNOPSIS
Get Brickset Set Detailed
.DESCRIPTION
Get Brickset Set with detailed info
.PARAMETER SetId
Brickset SetId (not the Lego Set Number)
.INPUTS
System.String.
.OUTPUTS
Brickset.sets
.EXAMPLE
Get-Brick... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Get-BricksetCollectionUserNotes.ps1 | Get-BricksetCollectionUserNotes.ps1 | function Get-BricksetCollectionUserNotes {
<#
.SYNOPSIS
Get all a user's set notes.
.DESCRIPTION
Get all a user's set notes.
.INPUTS
None
.OUTPUTS
Brickset.userNotes
.EXAMPLE
Get-BricksetCollectionUserNotes
#>
[CmdletBinding()][OutputType('Brickset.userNo... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Connect-Brickset.ps1 | Connect-Brickset.ps1 | function Connect-Brickset {
<#
.SYNOPSIS
Make a connection to the Brickset API
.DESCRIPTION
Make a connection to the Brickset API. Set the Brickset API Key and UserHash
.PARAMETER APIKey
API Key
.PARAMETER Credential
Supply Brickset Credentials
.INPUTS
System.S... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Get-BricksetSetWanted.ps1 | Get-BricksetSetWanted.ps1 | function Get-BricksetSetWanted {
<#
.SYNOPSIS
Get Brickset Sets Wanted
.DESCRIPTION
Get Brickset Sets Wanted
.PARAMETER OrderBy
Specify Sort Order
.PARAMETER PageSize
Specify how many records to return
.INPUTS
System.String.
System.Int.
.OUTPUTS... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Get-BricksetMinifigCollectionWanted.ps1 | Get-BricksetMinifigCollectionWanted.ps1 | function Get-BricksetMinifigCollectionWanted {
<#
.SYNOPSIS
Get Brickset Minifg Collection Wanted
.DESCRIPTION
Get Brickset Minifg Collection Wanted
.INPUTS
None
.OUTPUTS
Brickset.minifigCollection
.EXAMPLE
Get-BricksetMinifigCollectionWanted
#>
[CmdletBi... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Set-BricksetSetOwned.ps1 | Set-BricksetSetOwned.ps1 | function Set-BricksetSetOwned {
<#
.SYNOPSIS
Set a Brickset Set to Owned status
.DESCRIPTION
Set a Brickset Set to Owned status. Include the number of sets owned.
.PARAMETER SetId
Brickset SetId
.PARAMETER QtyOwned
Quantity Owned
.INPUTS
System.String
... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Get-BricksetSetReview.ps1 | Get-BricksetSetReview.ps1 | function Get-BricksetSetReview {
<#
.SYNOPSIS
Get Brickset Set Reviews
.DESCRIPTION
Get Brickset Set Reviews
.PARAMETER SetId
Brickset SetId (not the Lego Set Number)
.INPUTS
System.String.
.OUTPUTS
Brickset.reviews
.EXAMPLE
Get-BricksetSetR... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Get-BricksetTheme.ps1 | Get-BricksetTheme.ps1 | function Get-BricksetTheme {
<#
.SYNOPSIS
Get Brickset Themes
.DESCRIPTION
Get Brickset Themes
.INPUTS
None
.OUTPUTS
Brickset.themes
.EXAMPLE
Get-BricksetTheme
#>
[CmdletBinding()][OutputType('Brickset.themes')]
Param
(
)
... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Get-BricksetYear.ps1 | Get-BricksetYear.ps1 | function Get-BricksetYear {
<#
.SYNOPSIS
Get Brickset Years for a given Theme
.DESCRIPTION
Get Brickset Years for a given Theme
.PARAMETER Theme
Brickset Theme
.INPUTS
System.String.
.OUTPUTS
Brickset.years
.EXAMPLE
Get-BricksetYear -Theme '... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Get-BricksetCollectionTotals.ps1 | Get-BricksetCollectionTotals.ps1 | function Get-BricksetCollectionTotals {
<#
.SYNOPSIS
Get Brickset Collection Totals
.DESCRIPTION
Get Brickset Collection Totals
.INPUTS
None
.OUTPUTS
Brickset.collectionTotals
.EXAMPLE
Get-BricksetCollectionTotals
#>
[CmdletBinding()][OutputType('Brickset... |
PowerShellCorpus/PowerShellGallery/Brickset/1.3.3/Functions/Public/Set-BricksetSetWanted.ps1 | Set-BricksetSetWanted.ps1 | function Set-BricksetSetWanted {
<#
.SYNOPSIS
Set a Brickset Set to Wanted status
.DESCRIPTION
Set a Brickset Set to Wanted status
.PARAMETER SetId
Brickset SetId
.INPUTS
String
.OUTPUTS
None
.EXAMPLE
Set-BricksetSetWanted -SetId 26049
#>
[Cmd... |
PowerShellCorpus/PowerShellGallery/TypePx/2.0.1.20/snippets/Dictionary.AddArrayItem.ps1 | Dictionary.AddArrayItem.ps1 | <#
.SYNOPSIS
Add an item to one or more keys as an array stored in a dictionary
.DESCRIPTION
Add an item to one or more keys as an array stored in a dictionary. If the value is not an array or if the key does not yet exist in the dictionary, create the array from what is currently stored and add the item to... |
PowerShellCorpus/PowerShellGallery/TypePx/2.0.1.20/snippets/Dictionary.AddListItem.ps1 | Dictionary.AddListItem.ps1 | <#
.SYNOPSIS
Add an item to one or more keys as a list stored in a dictionary
.DESCRIPTION
Add an item to one or more keys as a list stored in a dictionary. If the key does not yet exist in the dictionary, add it. Otherwise, concatenate the list to the current list.
#>
[System.Diagnostics.DebuggerHidden()... |
PowerShellCorpus/PowerShellGallery/TypePx/2.0.1.20/snippets/String.ToScriptBlock.ps1 | String.ToScriptBlock.ps1 | <#
.SYNOPSIS
Convert a string into a script block
.DESCRIPTION
Convert a string into a script block, optionally using a set of variable values that will be applied to the string before the conversion.
#>
[System.Diagnostics.DebuggerHidden()]
param(
# The string you are converting to a script block.
... |
PowerShellCorpus/PowerShellGallery/TypePx/2.0.1.20/typedata/numerics.ps1 | numerics.ps1 | <#############################################################################
The TypePx module adds properties and methods to the most commonly used types
to make common tasks easier. Using these type extensions together can provide
an enhanced syntax in PowerShell that is both easier to read and
self-documenting... |
PowerShellCorpus/PowerShellGallery/TypePx/2.0.1.20/typedata/string.ps1 | string.ps1 | <#############################################################################
The TypePx module adds properties and methods to the most commonly used types
to make common tasks easier. Using these type extensions together can provide
an enhanced syntax in PowerShell that is both easier to read and
self-documenting... |
PowerShellCorpus/PowerShellGallery/TypePx/2.0.1.20/typedata/enumerable.ps1 | enumerable.ps1 | <#############################################################################
The TypePx module adds properties and methods to the most commonly used types
to make common tasks easier. Using these type extensions together can provide
an enhanced syntax in PowerShell that is both easier to read and
self-documenting... |
PowerShellCorpus/PowerShellGallery/TypePx/2.0.1.20/typedata/dictionary.ps1 | dictionary.ps1 | <#############################################################################
The TypePx module adds properties and methods to the most commonly used types
to make common tasks easier. Using these type extensions together can provide
an enhanced syntax in PowerShell that is both easier to read and
self-documenting... |
PowerShellCorpus/PowerShellGallery/TypePx/2.0.1.20/typedata/array.ps1 | array.ps1 | <#############################################################################
The TypePx module adds properties and methods to the most commonly used types
to make common tasks easier. Using these type extensions together can provide
an enhanced syntax in PowerShell that is both easier to read and
self-documenting... |
PowerShellCorpus/PowerShellGallery/TypePx/2.0.1.20/typedata/securestring.ps1 | securestring.ps1 | <#############################################################################
The TypePx module adds properties and methods to the most commonly used types
to make common tasks easier. Using these type extensions together can provide
an enhanced syntax in PowerShell that is both easier to read and
self-documenting... |
PowerShellCorpus/PowerShellGallery/TypePx/2.0.1.20/typedata/datetime.ps1 | datetime.ps1 | <#############################################################################
The TypePx module adds properties and methods to the most commonly used types
to make common tasks easier. Using these type extensions together can provide
an enhanced syntax in PowerShell that is both easier to read and
self-documenting... |
PowerShellCorpus/PowerShellGallery/TypePx/2.0.1.20/typedata/psmoduleinfo.ps1 | psmoduleinfo.ps1 | <#############################################################################
The TypePx module adds properties and methods to the most commonly used types
to make common tasks easier. Using these type extensions together can provide
an enhanced syntax in PowerShell that is both easier to read and
self-documenting... |
PowerShellCorpus/PowerShellGallery/TypePx/2.0.1.20/typedata/psscriptcmdlet.ps1 | psscriptcmdlet.ps1 | <#############################################################################
The TypePx module adds properties and methods to the most commonly used types
to make common tasks easier. Using these type extensions together can provide
an enhanced syntax in PowerShell that is both easier to read and
self-documenting... |
PowerShellCorpus/PowerShellGallery/TypePx/2.0.1.20/helpers/Add-ScriptPropertyData.ps1 | Add-ScriptPropertyData.ps1 | <#############################################################################
The TypePx module adds properties and methods to the most commonly used types
to make common tasks easier. Using these type extensions together can provide
an enhanced syntax in PowerShell that is both easier to read and
self-documenting... |
PowerShellCorpus/PowerShellGallery/TypePx/2.0.1.20/helpers/Add-AliasPropertyData.ps1 | Add-AliasPropertyData.ps1 | <#############################################################################
The TypePx module adds properties and methods to the most commonly used types
to make common tasks easier. Using these type extensions together can provide
an enhanced syntax in PowerShell that is both easier to read and
self-documenting... |
PowerShellCorpus/PowerShellGallery/TypePx/2.0.1.20/helpers/Add-ScriptMethodData.ps1 | Add-ScriptMethodData.ps1 | <#############################################################################
The TypePx module adds properties and methods to the most commonly used types
to make common tasks easier. Using these type extensions together can provide
an enhanced syntax in PowerShell that is both easier to read and
self-documenting... |
PowerShellCorpus/PowerShellGallery/TypePx/2.0.1.20/functions/Use-Namespace.ps1 | Use-Namespace.ps1 | <#############################################################################
The TypePx module adds properties and methods to the most commonly used types
to make common tasks easier. Using these type extensions together can provide
an enhanced syntax in PowerShell that is both easier to read and
self-documenting... |
PowerShellCorpus/PowerShellGallery/TypePx/2.0.1.20/functions/Add-TypeAccelerator.ps1 | Add-TypeAccelerator.ps1 | <#############################################################################
The TypePx module adds properties and methods to the most commonly used types
to make common tasks easier. Using these type extensions together can provide
an enhanced syntax in PowerShell that is both easier to read and
self-documenting... |
PowerShellCorpus/PowerShellGallery/TypePx/2.0.1.20/functions/Remove-TypeAccelerator.ps1 | Remove-TypeAccelerator.ps1 | <#############################################################################
The TypePx module adds properties and methods to the most commonly used types
to make common tasks easier. Using these type extensions together can provide
an enhanced syntax in PowerShell that is both easier to read and
self-documenting... |
PowerShellCorpus/PowerShellGallery/TypePx/2.0.1.20/functions/Set-TypeAccelerator.ps1 | Set-TypeAccelerator.ps1 | <#############################################################################
The TypePx module adds properties and methods to the most commonly used types
to make common tasks easier. Using these type extensions together can provide
an enhanced syntax in PowerShell that is both easier to read and
self-documenting... |
PowerShellCorpus/PowerShellGallery/TypePx/2.0.1.20/functions/Get-TypeAccelerator.ps1 | Get-TypeAccelerator.ps1 | <#############################################################################
The TypePx module adds properties and methods to the most commonly used types
to make common tasks easier. Using these type extensions together can provide
an enhanced syntax in PowerShell that is both easier to read and
self-documenting... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Import-PsHg.ps1 | Import-PsHg.ps1 | <#
.SYNOPSIS
Imports the PsHg module.
#>
[CmdletBinding()]
param(
)
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
$PSScriptRoot = Split-Path -Parent $MyInvocation.MyCommand.Definition
if( (Get-Module -Name 'PsHg') )
{
Remove-Module -Name 'PsHg' -Verbose:$false -WhatIf:$false
}
Imp... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Resolve-HgRoot.ps1 | Resolve-HgRoot.ps1 |
filter Resolve-HgRoot
{
<#
.SYNOPSIS
Gets the repository root for a given path.
.DESCRIPTION
It's very useful for commands to know where the root of a repository is for a given path. This function takes in a path to a directory or file and returns the root of its Mercurial repository.... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/ConvertTo-HgChangesetInfo.ps1 | ConvertTo-HgChangesetInfo.ps1 |
function ConvertTo-HgChangesetInfo
{
<#
#>
[CmdletBinding()]
[OutputType([PsHg.ChangesetInfo])]
param(
[Parameter(Mandatory=$true,ValueFromPipeline=$true)]
[object[]]
# The deserialized object to turn back into a PsHg.ChangesetInfo object.
$InputObject
... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Test-HgTag.ps1 | Test-HgTag.ps1 |
function Test-HgTag
{
<#
.SYNOPSIS
Tests if a tag exists.
.DESCRIPTION
If a tag exists, returns `$true`, otherwise `$false`. If checking for a tag in a place that doesn't have a directory, you'll get an error and nothing is returned.
.EXAMPLE
Test-HgTag -Name 'Hello'
De... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Get-HgVersion.ps1 | Get-HgVersion.ps1 |
function Get-HgVersion
{
<#
.SYNOPSIS
Gets the version of the hg.exe binary installed on this computer.
.DESCRIPTION
The version is returned as a System.Version object
ALIASES
ghgv
.EXAMPLE
> Get-HgVersion
Major Minor Build Revision
... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Test-HgBranch.ps1 | Test-HgBranch.ps1 |
function Test-HgBranch
{
<#
.SYNOPSIS
Checks if a branch exists.
.DESCRIPTION
Returns true if BranchName exists. False otherwise.
ALIASES
thgb
.EXAMPLE
Test-HgBranch BranchName
#>
[CmdletBinding()]
param(
[Parameter(Mandatory=$... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/New-HgTag.ps1 | New-HgTag.ps1 | function New-HgTag
{
<#
.SYNOPSIS
Creates a new tag.
.DESCRIPTION
Can create a new local tag, a global tag, or update the revision of an existing tag.
.EXAMPLE
New-HgTag -Name 'BranchBaseline'
Creates a new tag, `BranchBaseline`, for the revision of the current... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Test-HgOutgoingChangeset.ps1 | Test-HgOutgoingChangeset.ps1 |
function Test-HgOutgoingChangeset
{
<#
.SYNOPSIS
Tests if there are any outgoing changes that can be pushed.
.DESCRIPTION
Uses the `Get-HgOutgoingChangeset` function to retrieve any outgoing changes. If there are any, `$true` is returned. Otherwise, `$false`.
ALIASES
... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Test-HgDefaultPath.ps1 | Test-HgDefaultPath.ps1 |
function Test-HgDefaultPath
{
<#
.SYNOPSIS
Tests if a repository has a default incoming/outgoing path, i.e. that you'll be able to push/pull or view incoming/outgoing changes.
.DESCRIPTION
If you try to read incoming/outgoing changes for a repository without a default path, you'll some... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Save-HgChangeset.ps1 | Save-HgChangeset.ps1 |
function Save-HgChangeset
{
<#
.SYNOPSIS
Commits changes in a Mercurial repository.
.DESCRIPTION
Commits all uncommitted changes at the paths passed to the -Path parameter. If no path parameter is given, commits everything under the current directory.
ALIASES
svhgc, ... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Find-HgUnmergedChangeset.ps1 | Find-HgUnmergedChangeset.ps1 |
function Find-HgUnmergedChangeset
{
<#
.SYNOPSIS
Finds all the changesets that haven't been merged between a given branch and the current working directory.
.DESCRIPTION
The changesets are returned as objects.
.EXAMPLE
Find-HgUnmergedChangesets -Revision StableBra... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Test-HgIncomingChangeset.ps1 | Test-HgIncomingChangeset.ps1 |
function Test-HgIncomingChangeset
{
<#
.SYNOPSIS
Tests if there are incoming changesets for a repository.
.DESCRIPTION
Incoming changes can be dectected across the entire repository or on specific branches via the `Branch` parameter. If there are any incoming changesets, returns `True`. ... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Get-HgMergeResult.ps1 | Get-HgMergeResult.ps1 |
function Get-HgMergeResult
{
<#
.SYNOPSIS
Gets the result of the currently in-progress merge.
.DESCRIPTION
`Get-HgMergeResult` gets the state of an uncommitted merge in a repository.
One of the members of the return object is the exit code of the merge. This exit code is only valid... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Get-HgConfig.ps1 | Get-HgConfig.ps1 |
function Get-HgConfig
{
<#
.SYNOPSIS
Gets the value for a given Mercurial configuration option.
.DESCRIPTION
ALIASES
ghgcfg
.EXAMPLE
Get-HgConfig -Name 'ui.username'
Returns the value of the `ui.username` setting.
#>
[CmdletBinding()]
... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Repair-HgDirState.ps1 | Repair-HgDirState.ps1 |
function Repair-HgDirState
{
<#
.SYNOPSIS
Rebuilds/repairs Mercurial's dirstate file.
.DESCRIPTION
Use this command when Mercurial's dirstate file gets corrupted. This problems manifests itself when Mercurial thinks it is tracking files it shouldn't be.
#>
[CmdletBinding()]
... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Test-HgDirState.ps1 | Test-HgDirState.ps1 |
function Test-HgDirState
{
<#
.SYNOPSIS
Tests if a repository's dirstate is OK.
.DESCRIPTION
Sometimes, when a repository's dirstate gets corrupted, Mercurial will think it is tracking files that it really isn't. This function compares what Mercurial expects to be tracking with what Mercu... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Copy-HgRepository.ps1 | Copy-HgRepository.ps1 |
function Copy-HgRepository
{
<#
.SYNOPSIS
Clones a Mercurial repository.
.DESCRIPTION
Wraps the Mercurial clone and share commands to copy an existing repository in a new directory.
If the clone/share succeeds, sets the `$PsHg?` variable to `$true`. Otherwise, sets it to `$false`.... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Rename-HgItem.ps1 | Rename-HgItem.ps1 |
function Rename-HgItem
{
<#
.SYNOPSIS
Renames a file/directory in Mercurial.
.DESCRIPTION
This does not move the item. It changes its name only.
Properly handles changing the case of that item. Mercurial is case-sensitive. Windows is not. There may be times when you ... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Get-HgBookmark.ps1 | Get-HgBookmark.ps1 | function Get-HgBookmark
{
<#
.SYNOPSIS
Gets all the bookmarks in a repository, or a specific bookmark.
.DESCRIPTION
By default, returns all bookmarks in the repository. If given a value for the `Name` parameter, does a wildcard search for that bookmark.
.OUTPUT
PsHg.Book... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Test-HgHead.ps1 | Test-HgHead.ps1 |
function Test-HgHead
{
<#
.SYNOPSIS
Tests if there are multiple heads in a repository or in a branch.
.DESCRIPTION
Returns `True` if a repository (or branch) contains multiple heads. `False` otherwise. Repositories with more than one branch will always return `True`. If you want to know if... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Get-HgConflict.ps1 | Get-HgConflict.ps1 |
function Get-HgConflict
{
<#
.SYNOPSIS
Gets the list of merge conflicts.
.DESCRIPTION
Parses the output of Merucrial's `hg resolve -l` command, and returns object for each conflicted file and its current status. The objects returned have the following properties:
* Path: T... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Get-HgUncommittedChangeset.ps1 | Get-HgUncommittedChangeset.ps1 |
function Get-HgUncommittedChangeset
{
<#
.SYNOPSIS
Returns the status of all the uncommitted changes in the current repository.
.DESCRIPTION
Returns the results of the `hg status` command as objects. Each object will have the following properties:
* Path: The path (in the ... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Get-HgParent.ps1 | Get-HgParent.ps1 |
function Get-HgParent
{
<#
.SYNOPSIS
Gets the parent(s) of the current changeset.
.DESCRIPTION
Every changest in Mercurial has one or two parents. This function runs the hg parents Mercurial command and returns objects for the current revision's first and, it it exists, second parent.
... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Get-HgOutgoingChangeset.ps1 | Get-HgOutgoingChangeset.ps1 |
function Get-HgOutgoingChangeset
{
<#
.SYNOPSIS
Gets all the outgoing changesets in the current directory's repository.
.DESCRIPTION
Returns objects representing the outgoing changes.
ALIAS
ghgoutc, hgout
.EXAMPLE
Get-HgOutgoingChangeset
Ret... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Resolve-HgPath.ps1 | Resolve-HgPath.ps1 |
filter Resolve-HgPath
{
<#
.SYNOPSIS
Converts a file system path/item into that item's path in a Mercurial repository.
.DESCRIPTION
Files paths in a Mercurial repository are stored as paths relative to the repository's root directory. This function takes a path or file system item and... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Remove-HgBookmark.ps1 | Remove-HgBookmark.ps1 | function Remove-HgBookmark
{
<#
.SYNOPSIS
Removes a bookmark from Mercurial.
.DESCRIPTION
Removes a bookmark from Mercurial.
.EXAMPLE
Remove-HgBookmark -Name 'FooBar'
Demonstrates how to remove a bookmark from the repository in the current directory.
.EXAMPLE
R... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Remove-HgItem.ps1 | Remove-HgItem.ps1 |
function Remove-HgItem
{
<#
.SYNOPSIS
Removes an item from a Mercurial repository.
.DESCRIPTION
Given a path, removes the item at that location from its Mercurial repository. Don't forget to commit!
ALIASES
rhgi, hgremove
.EXAMPLE
Remove-HgItem C:\P... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Send-HgChangeset.ps1 | Send-HgChangeset.ps1 |
function Send-HgChangeset
{
<#
.SYNOPSIS
Pushes changes to a central repository, optionally merging with any incoming changes.
.DESCRIPTION
Uses Mercurial's push command to push outgoing changes to the repository's source.
If there are unsynced changes, the push will fail. ... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Split-HgXml.ps1 | Split-HgXml.ps1 |
function Split-HgXml
{
<#
.SYNOPSIS
Converts Mercurial's XML style output to PowerShell objects.
.DESCRIPTION
Mercurial's log-like commands all output to standard out. This doesn't work well with PowerShell's pipeline.
This command takes the output from Mercurial's xml styl... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Get-HgRepositoryName.ps1 | Get-HgRepositoryName.ps1 | function Get-HgRepositoryName
{
<#
.SYNOPSIS
Gets the name of a Mercurial repository.
.DESCRIPTION
Really, it gets the name of the repository it came from, which is usually what you want.
.EXAMPLE
Get-HgRepositoryName
Gets the name of the repository in the curr... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Merge-HgChangeset.ps1 | Merge-HgChangeset.ps1 |
function Merge-HgChangeset
{
<#
.SYNOPSIS
Merges a revision into the current working directory.
.DESCRIPTION
Invokes Mercurial's merge command to merge a revision into the current working directory.
If you are running this command interactively, *do not* pipe the output of this ... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Receive-HgChangeset.ps1 | Receive-HgChangeset.ps1 |
function Receive-HgChangeset
{
<#
.SYNOPSIS
Pulls changes into a repository.
.DESCRIPTION
Runs Mercurial's pull command to bring changes into a repository. Can optionally pull changes in from a specific branch via the `Branch` parameter.
ALIASES
rchgc, hgpull
... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Find-HgChangeset.ps1 | Find-HgChangeset.ps1 |
function Find-HgChangeset
{
<#
.SYNOPSIS
Searches Mercurial history for changesets.
.DESCRIPTION
Returns found changesets as objects.
ALIASES
fdhgc, hglog
.EXAMPLE
Find-HgChangesets -Last 2
Returns the last two changesets
#>
... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Get-HgTag.ps1 | Get-HgTag.ps1 |
function Get-HgTag
{
<#
.SYNOPSIS
Gets the tags in a repository.
.DESCRIPTION
By default, all tags are returned. You can supply a name to return a specific tag, or a wildcard to return multiple tags.
.EXAMPLE
Get-HgTag
Demonstrates how to get all the tags in a repositor... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Copy-HgChangeset.ps1 | Copy-HgChangeset.ps1 |
function Copy-HgChangeset
{
<#
.SYNOPSIS
Copies a single changeset from one branch to another.
.DESCRIPTION
This function first verifies that you are either in an Hg repository or that the path you pass in to the repository is valid. It will then verify that the Revision passed in exists ... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/New-HgBranch.ps1 | New-HgBranch.ps1 |
function New-HgBranch
{
<#
.SYNOPSIS
Creates a new branch.
.DESCRIPTION
Attempts to create a new branch and set the currently 'active' branch to it. If a branch already exists with the given name, an error occurs.
Note that "the branch will not exist in the repository until the ne... |
PowerShellCorpus/PowerShellGallery/PsHg/0.6.2/Functions/Test-HgBookmark.ps1 | Test-HgBookmark.ps1 | function Test-HgBookmark
{
<#
.SYNOPSIS
Tests if a bookmark exists.
.DESCRIPTION
Returns `$true` if the bookmark exists, or `$false` if it doesn't.
.OUTPUTS
System.Boolean.
.EXAMPLE
Test-HgBookmark 'NewHgBookmark'
Demonstrates how to test if a b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.