Skip to content

Commit

Permalink
add uninstall script and longer description
Browse files Browse the repository at this point in the history
  • Loading branch information
marianina8 committed May 22, 2024
1 parent 7d4a275 commit 4e0f250
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions choco/timetravel.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<version>__REPLACE__</version>
<title>Time Travel CLI</title>
<authors>Marian Montagnino</authors>
<owners>Marian Montagnino</owners>
<packageSourceUrl>https://community.chocolatey.org/packages/timetravel/</packageSourceUrl>
<projectUrl>https://github.com/marianina8/timetravel</projectUrl>
<description>A CLI tool for time travel</description>
<description>Welcome to the timetravel CLI! Ever wanted to dial back the clock and revisit moments in history? Or perhaps shoot forward into the future? Inspired by the classic "Back to the Future" films, timetravel allows you to (figuratively) hop into your DeLorean, punch in a date and time, and embark on a fantastic voyage through the temporal realm! (1.21 gigawatts not required.)</description>
<tags>cli golang timetravel</tags>
</metadata>
<files>
Expand Down
10 changes: 10 additions & 0 deletions choco/tools/chocolateyuninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
$ErrorActionPreference = 'Stop'; # stop on all errors

# Remove any existing service with the same name
Write-Output "################################"
Write-Output "Removing any old $packageName service"
if (Get-Service $packageName -ErrorAction 'SilentlyContinue'){
Stop-Service $packageName -Force
(Get-WmiObject -Class Win32_Service -filter "Name='$packageName'").delete()
}
Write-Output "################################"

0 comments on commit 4e0f250

Please sign in to comment.