Skip to content

Commit

Permalink
v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhitsolutions committed Feb 29, 2020
1 parent a603f02 commit ec67397
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 13 deletions.
8 changes: 7 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log for PSTypeExtensionTools

## v1.5.1

+ Fixed error in properly exporting aliases.
+ Updated license file.
+ Very minor help corrections.

## v1.5.0

+ Added new parameter, `-IncludeDeserialized`, on `Add-PSTypeExtension` ([Issue #14](https://github.com/jdhitsolutions/PSTypeExtensionTools/issues/14))
Expand Down Expand Up @@ -39,7 +45,7 @@

## v1.0.0

+ Modified `Export+PSTypeExtension` to export to a ps1xml file ([Issue #11](https://github.com/jdhitsolutions/PSTypeExtensionTools/issues/11))
+ Modified `Export-PSTypeExtension` to export to a ps1xml file ([Issue #11](https://github.com/jdhitsolutions/PSTypeExtensionTools/issues/11))
+ release to the PowerShell Gallery
+ Updated documentation
+ Updated samples
Expand Down
2 changes: 1 addition & 1 deletion License.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017-2019 JDH Information Technology Solutions, Inc.
Copyright (c) 2017-2020 JDH Information Technology Solutions, Inc.


Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
Binary file modified PSTypeExtensionTools.psd1
Binary file not shown.
2 changes: 1 addition & 1 deletion PSTypeExtensionTools.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -369,5 +369,5 @@ Function Add-PSTypeExtension {

#Export the Samples folder location as a variable
$PSTypeSamples = Join-path $PSScriptRoot -ChildPath samples
Export-ModuleMember -Variable PSTypeSamples
Export-ModuleMember -Variable PSTypeSamples -Alias 'Set-PSTypeExtension'

2 changes: 1 addition & 1 deletion docs/Add-PSTypeExtension.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ schema: 2.0.0

## SYNOPSIS

Add a new type extension
Add a new type extension.

## SYNTAX

Expand Down
6 changes: 3 additions & 3 deletions docs/Get-PSType.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ schema: 2.0.0

## SYNOPSIS

Get the type name for a given object
Get the type name for a given object.

## SYNTAX

Expand Down Expand Up @@ -50,8 +50,8 @@ Pipe an object to get its type and then pipe that name to Get-PSTypeExtension to
### EXAMPLE 3

```powershell
PS C:\> get-vm win10 | get-pstype | Add-PSTypeExtension -MemberType ScriptProperty -MemberName VMAge -Value {(Get-Date)- $this.Creationtime}
PS C:\> get-vm | sort VMAge -descending | select Name,Creationtime,VMAge
PS C:\> get-vm win10 | get-pstype | Add-PSTypeExtension -MemberType ScriptProperty -MemberName VMAge -Value {(Get-Date)- $this.Creationtime}
PS C:\> get-vm | sort VMAge -descending | select Name,Creationtime,VMAge
Name CreationTime VMAge
---- ------------ -----
Expand Down
2 changes: 1 addition & 1 deletion docs/Import-PSTypeExtension.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ schema: 2.0.0

## SYNOPSIS

Import type extension definitions
Import type extension definitions.

## SYNTAX

Expand Down
10 changes: 5 additions & 5 deletions en-us/PSTypeExtensionTools-help.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<command:verb>Add</command:verb>
<command:noun>PSTypeExtension</command:noun>
<maml:description>
<maml:para>Add a new type extension</maml:para>
<maml:para>Add a new type extension.</maml:para>
</maml:description>
</command:details>
<maml:description>
Expand Down Expand Up @@ -519,7 +519,7 @@ True</dev:code>
<command:verb>Get</command:verb>
<command:noun>PSType</command:noun>
<maml:description>
<maml:para>Get the type name for a given object</maml:para>
<maml:para>Get the type name for a given object.</maml:para>
</maml:description>
</command:details>
<maml:description>
Expand Down Expand Up @@ -606,8 +606,8 @@ IsIPAddress ScriptMethod $this -match "^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$"</
</command:example>
<command:example>
<maml:title>-------------------------- EXAMPLE 3 --------------------------</maml:title>
<dev:code>PS C:\&gt; get-vm win10 | get-pstype | Add-PSTypeExtension -MemberType ScriptProperty -MemberName VMAge -Value {(Get-Date)- $this.Creationtime}
PS C:\&gt; get-vm | sort VMAge -descending | select Name,Creationtime,VMAge
<dev:code>PS C:\&gt; get-vm win10 | get-pstype | Add-PSTypeExtension -MemberType ScriptProperty -MemberName VMAge -Value {(Get-Date)- $this.Creationtime}
PS C:\&gt; get-vm | sort VMAge -descending | select Name,Creationtime,VMAge

Name CreationTime VMAge
---- ------------ -----
Expand Down Expand Up @@ -812,7 +812,7 @@ __NounName Noteproperty Process</dev:code>
<command:verb>Import</command:verb>
<command:noun>PSTypeExtension</command:noun>
<maml:description>
<maml:para>Import type extension definitions</maml:para>
<maml:para>Import type extension definitions.</maml:para>
</maml:description>
</command:details>
<maml:description>
Expand Down

0 comments on commit ec67397

Please sign in to comment.