| external help file | PSKoans-help.xml |
|---|---|
| Module Name | PSKoans |
| online version | |
| schema | 2.0.0 |
Reset one or more koans or koan topics to the initial state.
Reset-PSKoan [-Topic <String[]>] [-Name <String>] [-Context <String>] [-WhatIf] [-Confirm] [<CommonParameters>]Reset-PSKoan [-Topic <String[]>] -Module <String[]> [-Name <String>] [-Context <String>] [-WhatIf] [-Confirm]
[<CommonParameters>]Reset-PSKoan [-Topic <String[]>] -IncludeModule <String[]> [-Name <String>] [-Context <String>] [-WhatIf]
[-Confirm] [<CommonParameters>]Replaces the koan in the user file set with the original copy of the koan from the module.
PS C:\> Reset-PSKoanCompletely reset all koans in the user folder to the initial state. You will be prompted to confirm.
PS C:\> Reset-PSKoan -Topic AboutArraysResets all koans in the AboutArrays topic.
PS C:\> Reset-PSKoan -Topic AboutArrays, AboutComparisonReset all koans in the AboutArrays and AboutComparison topics.
PS C:\> Reset-PSKoan -Topic AboutArrays -Name 'allows the collection to be split into multiple parts'Resets the "allows the collection to be split into multiple parts" koan in the AboutArrays topic.
PS C:\> Reset-PSKoan -Topic AboutComparison -Name 'may coerce values to boolean' -Context '-and'Resets the "may coerce values to boolean" koan in the "-and" context of the AboutComparison topic.
PS C:\> Reset-PSKoan -Topic AboutComparison -Context '-and'Resets all koans in the "-and" context of the AboutComparison topic.
PS C:\> Reset-PSKoan -Topic AboutC* -Name returns*Reset koans with names starting "returns" in topics matching the wildcard pattern "AboutC*".
Prompts for confirmation before making any changes. Use to always be prompted before any changes are made.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseReset koans in the specified Context block.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseReset the default PowerShell Koans as well as Koans for the specified module. Wildcards are supported.
Type: String[]
Parameter Sets: IncludeModule
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueReset Koans for the specified module only. Wildcards are supported.
Type: String[]
Parameter Sets: ModuleOnly
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueThe name of the koan to reset. Wildcards are supported.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueReset the specified topic or topics. Wildcards are supported.
Type: String[]
Parameter Sets: (All)
Aliases: Koan, File
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueDisplays what will be reset without actually resetting anything.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Author: Chris Dent (@indented-automation)