external help file | Module Name | online version | schema |
---|---|---|---|
PSKoans-help.xml |
PSKoans |
2.0.0 |
Gets koan topic metadata for each topic.
Get-PSKoan [-Topic <String[]>] [-IncludeModule <String[]>] [-Scope <String>] [-SkipAttributeParsing]
[<CommonParameters>]
Get-PSKoan [-Topic <String[]>] [-Module <String[]>] [-Scope <String>] [-SkipAttributeParsing]
[<CommonParameters>]
Get-PSKoan [-Topic <String[]>] [-Scope <String>] [-SkipAttributeParsing] [-ListModules] [<CommonParameters>]
Get-PSKoan finds Koans in either the Module or User locations. Koan information includes position and module information, as well as topic name.
PS C:\> Get-PSKoan
Get all Koans in the PSKoans module, excluding koans for individual modules.
PS C:\> Get-PSKoan -IncludeModule *
Get all Koans in the PSKoans module, include all koans for individual PowerShell modules.
PS C:\> Get-PSKoan -Topic AboutArrays
Get information about the AboutArrays koans.
PS C:\> Get-PSKoan -Module ActiveDirectory
Get koans from the ActiveDirectory module only.
PS C:\> Get-PSKoan -Scope User
Get all Koans in the User location, excluding koans for individual modules.
Get default PowerShell Koans as well as Koans for the specified module. Wildcards are supported.
Type: String[]
Parameter Sets: IncludeModule
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
List the modules included with PSKoans.
Type: SwitchParameter
Parameter Sets: ListModules
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Get Koans for the specified module only. Wildcards are supported.
Type: String[]
Parameter Sets: ModuleOnly
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
Get koans from the specified scope. The default scope is Module. User scope gets Koan information from the location used by Get-PSKoanLocation.
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: User, Module
Required: False
Position: Named
Default value: Module
Accept pipeline input: False
Accept wildcard characters: False
By default, Get-PSKoan attempts to retrieve the Position and Module information from the Koan attribute in each file. This process may be skipped by using this parameter.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Reset the specified topic or topics. Wildcards are supported.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
A simple object noting the topic name, koan topic position, and module the topic belongs to.
Author: Chris Dent (@indented-automation)