Skip to content

Instantly share code, notes, and snippets.

@adamdriscoll
Created September 7, 2019 16:25
Show Gist options
  • Save adamdriscoll/3018aba8cf961906835bcdb87c0d5375 to your computer and use it in GitHub Desktop.
Save adamdriscoll/3018aba8cf961906835bcdb87c0d5375 to your computer and use it in GitHub Desktop.
UDHelmet Function
function New-UDHelmet {
param(
[Parameter()]
[string]$Id = (New-Guid).ToString(),
[Parameter(Mandatory = $true)]
[scriptblock]$Content
)
End {
@{
assetId = $AssetId
isPlugin = $true
type = "ud-helmet"
id = $Id
content = $Content.Invoke()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment