Permalink
Find file
e248caf Jan 12, 2017
25 lines (22 sloc) 688 Bytes
Import-Module -Name "$PSScriptRoot\..\Rubrik" -Force
$verbs = (Get-Command -Module Rubrik).Verb | Select-Object -Unique
foreach ($verb in $verbs)
{
$data = @()
$data += "$verb Commands"
$data += '========================='
$data += ''
$data += "This page contains details on **$verb** commands."
$data += ''
foreach ($help in (Get-Command -Module Rubrik | Where-Object -FilterScript {
$_.name -like "$verb-*"
}))
{
$data += $help.Name
$data += '-------------------------'
$data += ''
$data += Get-Help -Name $help.name -Detailed
$data += ''
}
$data | Out-File -FilePath "$PSScriptRoot\cmd_$($verb.ToLower()).rst" -Encoding utf8
}