Skip to content

Commit d38495a

Browse files
author
Robin Stolpe
authored
Merge pull request #17 from rstolpe/beta
Beta
2 parents d5d8a7c + 20fafdb commit d38495a

11 files changed

Lines changed: 67 additions & 44 deletions

.src/Public/Function/Uninstall-RSModule.ps1

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@
2121
https://github.com/rstolpe/MaintainModule/blob/main/README.md
2222
2323
.NOTES
24-
Author: Robin Stolpe
25-
Mail: robin@stolpe.io
26-
Website: https://stolpe.io
27-
GitHub: https://github.com/rstolpe
28-
Twitter: https://twitter.com/rstolpes
29-
PSGallery: https://www.powershellgallery.com/profiles/rstolpe
24+
Author: Robin Stolpe
25+
Mail: robin@stolpe.io
26+
Twitter: https://twitter.com/rstolpes
27+
Linkedin: https://www.linkedin.com/in/rstolpe/
28+
Website/Blog: https://stolpe.io
29+
GitHub: https://github.com/rstolpe
30+
PSGallery: https://www.powershellgallery.com/profiles/rstolpe
3031
#>
3132

3233
[CmdletBinding(SupportsShouldProcess)]

.src/Public/Function/Update-RSModule.ps1

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,13 @@
4646
https://github.com/rstolpe/MaintainModule/blob/main/README.md
4747
4848
.NOTES
49-
Author: Robin Stolpe
50-
Mail: robin@stolpe.io
51-
Twitter: @rstolpes
52-
Website: https://stolpe.io
53-
GitHub: https://github.com/rstolpe
54-
PSGallery: https://www.powershellgallery.com/profiles/rstolpe
49+
Author: Robin Stolpe
50+
Mail: robin@stolpe.io
51+
Twitter: https://twitter.com/rstolpes
52+
Linkedin: https://www.linkedin.com/in/rstolpe/
53+
Website/Blog: https://stolpe.io
54+
GitHub: https://github.com/rstolpe
55+
PSGallery: https://www.powershellgallery.com/profiles/rstolpe
5556
#>
5657

5758
[CmdletBinding(SupportsShouldProcess)]

MaintainModule/MaintainModule.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#
1919
# Generated by: Robin Stolpe
2020
#
21-
# Generated on: 2022-12-01
21+
# Generated on: 2022-12-03
2222
#
2323

2424
@{

MaintainModule/MaintainModule.psm1

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,13 @@ Function Uninstall-RSModule {
3737
https://github.com/rstolpe/MaintainModule/blob/main/README.md
3838
3939
.NOTES
40-
Author: Robin Stolpe
41-
Mail: robin@stolpe.io
42-
Website: https://stolpe.io
43-
GitHub: https://github.com/rstolpe
44-
Twitter: https://twitter.com/rstolpes
45-
PSGallery: https://www.powershellgallery.com/profiles/rstolpe
40+
Author: Robin Stolpe
41+
Mail: robin@stolpe.io
42+
Twitter: https://twitter.com/rstolpes
43+
Linkedin: https://www.linkedin.com/in/rstolpe/
44+
Website/Blog: https://stolpe.io
45+
GitHub: https://github.com/rstolpe
46+
PSGallery: https://www.powershellgallery.com/profiles/rstolpe
4647
#>
4748

4849
[CmdletBinding(SupportsShouldProcess)]
@@ -155,12 +156,13 @@ Function Update-RSModule {
155156
https://github.com/rstolpe/MaintainModule/blob/main/README.md
156157
157158
.NOTES
158-
Author: Robin Stolpe
159-
Mail: robin@stolpe.io
160-
Twitter: @rstolpes
161-
Website: https://stolpe.io
162-
GitHub: https://github.com/rstolpe
163-
PSGallery: https://www.powershellgallery.com/profiles/rstolpe
159+
Author: Robin Stolpe
160+
Mail: robin@stolpe.io
161+
Twitter: https://twitter.com/rstolpes
162+
Linkedin: https://www.linkedin.com/in/rstolpe/
163+
Website/Blog: https://stolpe.io
164+
GitHub: https://github.com/rstolpe
165+
PSGallery: https://www.powershellgallery.com/profiles/rstolpe
164166
#>
165167

166168
[CmdletBinding(SupportsShouldProcess)]

README.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
![GitHub](https://img.shields.io/github/license/rstolpe/MaintainModule?style=plastic) ![GitHub last commit](https://img.shields.io/github/last-commit/rstolpe/MaintainModule?style=plastic) ![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/rstolpe/maintainmodule?sort=semver&style=plastic)
2+
13
# MaintainModule
2-
This module let you update all of your installed modules and also uninstall the old versions to keep things clean.
3-
You can also specify module or modules that you want to update. It's also possible to install the module if it's missing and import the modules in the end of the script.
4+
This module let you update all of your installed modules and also uninstall the old versions to keep things clean.
5+
You can also specify module or modules that you want to update. It's also possible to install the module if it's missing and import the modules in the end of the script.
6+
I have added the result from PSScriptAnalyzer in [test folder](https://github.com/rstolpe/MaintainModule/tree/main/test)
47

58
## This module can do the following
69
- Checks so TLS 1.2 are used by PowerShell
@@ -11,7 +14,21 @@ You can also specify module or modules that you want to update. It's also possib
1114
- If specified module are missing you can choose to install it
1215
- Import specified modules in the end of the script
1316

14-
# Install
17+
# Links
18+
* [Webpage/Blog](https://www.stolpe.io)
19+
* [Twitter](https://twitter.com/rstolpes)
20+
* [LinkedIn](https://www.linkedin.com/in/rstolpe/)
21+
* [PowerShell Gallery](https://www.powershellgallery.com/profiles/rstolpe)
22+
23+
# Help
24+
Below I have specified things that I think will help people with this module.
25+
You can also see the API for each function in the [help folder](https://github.com/rstolpe/MaintainModule/tree/main/help)
26+
27+
## Notes
28+
The parameter -Scope don't effect the uninstall-module function this is because of limitation from Microsoft.
29+
-Scope effect Install/update module function.
30+
31+
## Install
1532
Install for current user
1633
```
1734
Install-Module -Name MaintainModule -Scope CurrentUser -Force
@@ -22,10 +39,6 @@ Install for all users
2239
Install-Module -Name MaintainModule -Scope AllUsers -Force
2340
```
2441

25-
# Help
26-
## Notes
27-
The parameter -Scope don't effect the uninstall-module function this is because of limitation from Microsoft.
28-
-Scope effect Install/update module function.
2942
## Update-RSModule
3043
### Update all modules that are installed on the system
3144
You can do that if you run the command.

help/Uninstall-RSModule.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,13 @@ OUTPUTS
5353
NOTES
5454

5555

56-
Author: Robin Stolpe
57-
Mail: robin@stolpe.io
58-
Website: https://stolpe.io
59-
GitHub: https://github.com/rstolpe
60-
Twitter: https://twitter.com/rstolpes
61-
PSGallery: https://www.powershellgallery.com/profiles/rstolpe
56+
Author: Robin Stolpe
57+
Mail: robin@stolpe.io
58+
Twitter: https://twitter.com/rstolpes
59+
Linkedin: https://www.linkedin.com/in/rstolpe/
60+
Website/Blog: https://stolpe.io
61+
GitHub: https://github.com/rstolpe
62+
PSGallery: https://www.powershellgallery.com/profiles/rstolpe
6263

6364
-------------------------- EXAMPLE 1 --------------------------
6465

help/Update-RSModule.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,13 @@ OUTPUTS
9494
NOTES
9595

9696

97-
Author: Robin Stolpe
98-
Mail: robin@stolpe.io
99-
Twitter: @rstolpes
100-
Website: https://stolpe.io
101-
GitHub: https://github.com/rstolpe
102-
PSGallery: https://www.powershellgallery.com/profiles/rstolpe
97+
Author: Robin Stolpe
98+
Mail: robin@stolpe.io
99+
Twitter: https://twitter.com/rstolpes
100+
Linkedin: https://www.linkedin.com/in/rstolpe/
101+
Website/Blog: https://stolpe.io
102+
GitHub: https://github.com/rstolpe
103+
PSGallery: https://www.powershellgallery.com/profiles/rstolpe
103104

104105
-------------------------- EXAMPLE 1 --------------------------
105106

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0 rule violations found.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0 rule violations found.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0 rule violations found.

0 commit comments

Comments
 (0)