File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ function Get-DbatoolsChangeLog {
4
4
Opens the link to our online change log
5
5
6
6
. DESCRIPTION
7
- Opens the link to our online change log. To see the local changelog instead, use the Local parameter.
7
+ Opens the link to our online change log.
8
8
9
9
. PARAMETER Local
10
- Return the local change log to the console
10
+ Once upon a time, there was a local changelog. This is not available anymore so a proper warning will be raised
11
11
12
12
. PARAMETER EnableException
13
13
By default, when something goes wrong we try to catch it, interpret it and give you a friendly warning message.
@@ -30,10 +30,6 @@ function Get-DbatoolsChangeLog {
30
30
31
31
Opens a browser to our online changelog
32
32
33
- . EXAMPLE
34
- Get-DbatoolsChangeLog -Local
35
-
36
- Returns the content from changelog.md
37
33
#>
38
34
[CmdletBinding ()]
39
35
param (
@@ -43,15 +39,9 @@ function Get-DbatoolsChangeLog {
43
39
44
40
try {
45
41
if (-not $Local ) {
46
- Start-Process " https://github.com/dataplat/dbatools/blob/development/changelog.md "
42
+ Start-Process " https://github.com/dataplat/dbatools/releases "
47
43
} else {
48
- $releasenotes = Get-Content $script :PSModuleRoot \changelog.md - Raw
49
-
50
- if ($Local ) {
51
- ($releasenotes -Split " ##Local" )[0 ]
52
- } else {
53
- $releasenotes
54
- }
44
+ Write-Message - Level " Warning" - Message " Sorry, changelog is only available online"
55
45
}
56
46
} catch {
57
47
Stop-Function - Message " Failure" - ErrorRecord $_
You can’t perform that action at this time.
0 commit comments