amps

0.2.1

A PowerShell script module with advanced functions that extend PowerShell. Currently included functions focus on enabling the short and concise splatting of nested objects.

Minimum PowerShell version

5.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name amps

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name amps

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2017 Alan Mervitz. All rights reserved.

Package Details

Author(s)

  • Alan Mervitz

Tags

splat splatting

Functions

Enter-Object Invoke-Splat

Dependencies

This module has no dependencies.

Release Notes

Version 0.2.1:

Add the Invoke-Splat function to directly splat a hash table or array located within a nested object. It has
the alias of 'iat' to provide a shorthand version named after the At symbol (@), by 'Invoking At'.

Example:

Invoke-Splat Write-Host $loginResult.Message

---

Version 0.1.0:

Add the Enter-Object function for accessing the properties of an object or items of a hashtable as variables
within a new scope without needing to refer to the containing object. This makes it easy to splat a nested
object without temporary variable assignments. It has an alias of 'with' to provide a shorthand version that
makes it feel like a built-in language construct.

Example:

with $loginResult {
   Write-Host @Message
}

FileList

Version History

Version Downloads Last updated
0.2.1 (current version) 746 2/13/2017
0.1.0 40 2/6/2017