external help file | Module Name | online version | schema |
---|---|---|---|
PSKoans-help.xml |
PSKoans |
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-PSKoan
Completely reset all koans in the user folder to the initial state. You will be prompted to confirm.
PS C:\> Reset-PSKoan -Topic AboutArrays
Resets all koans in the AboutArrays topic.
PS C:\> Reset-PSKoan -Topic AboutArrays, AboutComparison
Reset 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: False
Reset 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: False
Reset 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: True
Reset 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: True
The 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: True
Reset 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: True
Displays 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: False
This 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)