-
-
Notifications
You must be signed in to change notification settings - Fork 1
Fix: address all code review findings #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,65 +1,97 @@ | ||
| --- | ||
| external help file: TheCleaners-help.xml | ||
| Module Name: TheCleaners | ||
| online version: | ||
| schema: 2.0.0 | ||
| --- | ||
|
|
||
| # Clear-OldIISLog | ||
|
|
||
| ## SYNOPSIS | ||
| A script to clean out old IIS log files. | ||
|
|
||
| ## SYNTAX | ||
|
|
||
| ``` | ||
| Clear-OldIISLog [[-Days] <Int16>] [<CommonParameters>] | ||
| ``` | ||
|
|
||
| ## DESCRIPTION | ||
| This script will clean out IIS log files older than x days. | ||
|
|
||
| ## EXAMPLES | ||
|
|
||
| ### EXAMPLE 1 | ||
| ``` | ||
| Clear-OldIISLogFile -Days 60 | ||
| ``` | ||
|
|
||
| Removes all IIS log files that are older than 60 days. | ||
|
|
||
| ## PARAMETERS | ||
|
|
||
| ### -Days | ||
| The number of days to keep log files. | ||
| The default is 30 days. | ||
|
|
||
| ```yaml | ||
| Type: Int16 | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
|
|
||
| Required: False | ||
| Position: 1 | ||
| Default value: 60 | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### CommonParameters | ||
| This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. | ||
| For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). | ||
|
|
||
| ## INPUTS | ||
|
|
||
| ## OUTPUTS | ||
|
|
||
| ## NOTES | ||
| If the WebAdministration module is available, it will use that to check the specific log file locations for | ||
| each web site. | ||
| Otherwise, it checks the assumed default log folder location and the registry for the IIS | ||
| log file location. | ||
|
|
||
| To Do: Add a summary of which blocks were run and possibly a count of log files removed. | ||
|
|
||
| --- | ||
| external help file: TheCleaners-help.xml | ||
| Module Name: TheCleaners | ||
| online version: | ||
| schema: 2.0.0 | ||
| --- | ||
|
|
||
| # Clear-OldIISLog | ||
|
|
||
| ## SYNOPSIS | ||
| A script to clean out old IIS log files. | ||
|
|
||
| ## SYNTAX | ||
|
|
||
| ``` | ||
| Clear-OldIISLog [[-Days] <Int16>] [-WhatIf] [-Confirm] | ||
| [<CommonParameters>] | ||
| ``` | ||
|
|
||
| ## DESCRIPTION | ||
| This script will clean out IIS log files older than x days. | ||
|
|
||
| ## EXAMPLES | ||
|
|
||
| ### EXAMPLE 1 | ||
| ``` | ||
| Clear-OldIISLog -Days 60 | ||
| ``` | ||
|
|
||
| Removes all IIS log files that are older than 60 days. | ||
|
|
||
| ## PARAMETERS | ||
|
|
||
| ### -Days | ||
| The number of days to keep log files. | ||
| The default is 60 days. | ||
|
|
||
| ```yaml | ||
| Type: Int16 | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
|
|
||
| Required: False | ||
| Position: 1 | ||
| Default value: 60 | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -WhatIf | ||
| Shows what would happen if the cmdlet runs. | ||
| The cmdlet is not run. | ||
|
|
||
| ```yaml | ||
| Type: SwitchParameter | ||
| Parameter Sets: (All) | ||
| Aliases: wi | ||
|
|
||
| Required: False | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -Confirm | ||
| Prompts you for confirmation before running the cmdlet. | ||
|
|
||
| ```yaml | ||
| Type: SwitchParameter | ||
| Parameter Sets: (All) | ||
| Aliases: cf | ||
|
|
||
| Required: False | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### CommonParameters | ||
| This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. | ||
| For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). | ||
|
|
||
| ## INPUTS | ||
|
|
||
| ## OUTPUTS | ||
|
|
||
| ## NOTES | ||
| If the WebAdministration module is available, it will use that to check the specific log file locations for | ||
| each web site. | ||
| Otherwise, it checks the assumed default log folder location and the registry for the IIS | ||
| log file location. | ||
|
|
||
| To Do: Add a summary of which blocks were run and possibly a count of log files removed. | ||
|
|
||
| ## RELATED LINKS | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,58 +1,58 @@ | ||
| --- | ||
| external help file: TheCleaners-help.xml | ||
| Module Name: TheCleaners | ||
| online version: | ||
| schema: 2.0.0 | ||
| --- | ||
| # Start-Cleaning | ||
| ## SYNOPSIS | ||
| Show the commands you can give The Cleaners. | ||
| ## SYNTAX | ||
| ``` | ||
| Start-Cleaning [-Dedication] [<CommonParameters>] | ||
| ``` | ||
| ## DESCRIPTION | ||
| Get started with a menu of services The Cleaners can offer. | ||
| ## EXAMPLES | ||
| ### EXAMPLE 1 | ||
| ``` | ||
| Start-Cleaning | ||
| ``` | ||
| View the menu of services that TheCleaners provide. | ||
| ## PARAMETERS | ||
| ### -Dedication | ||
| Show dedication | ||
| ```yaml | ||
| Type: SwitchParameter | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
| Required: False | ||
| Position: Named | ||
| Default value: False | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
| ### CommonParameters | ||
| This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. | ||
| For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). | ||
| ## INPUTS | ||
| ## OUTPUTS | ||
| ## NOTES | ||
| --- | ||
| external help file: TheCleaners-help.xml | ||
| Module Name: TheCleaners | ||
| online version: | ||
| schema: 2.0.0 | ||
| --- | ||
|
|
||
| # Start-Cleaning | ||
|
|
||
| ## SYNOPSIS | ||
| Show the commands you can give The Cleaners. | ||
|
|
||
| ## SYNTAX | ||
|
|
||
| ``` | ||
| Start-Cleaning [-Dedication] [<CommonParameters>] | ||
| ``` | ||
|
|
||
| ## DESCRIPTION | ||
| Get started with a menu of services The Cleaners can offer. | ||
|
|
||
| ## EXAMPLES | ||
|
|
||
| ### EXAMPLE 1 | ||
| ``` | ||
| Start-Cleaning | ||
| ``` | ||
|
|
||
| View the menu of services that TheCleaners provide. | ||
|
|
||
| ## PARAMETERS | ||
|
|
||
| ### -Dedication | ||
| Show a short dedication before the command menu. | ||
|
|
||
| ```yaml | ||
| Type: SwitchParameter | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
|
|
||
| Required: False | ||
| Position: Named | ||
| Default value: False | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### CommonParameters | ||
| This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. | ||
| For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). | ||
|
|
||
| ## INPUTS | ||
|
|
||
| ## OUTPUTS | ||
|
|
||
| ## NOTES | ||
|
|
||
| ## RELATED LINKS | ||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.