Skip to content

Commit

Permalink
Refactored functions
Browse files Browse the repository at this point in the history
Added tests

Added option to set files movement type

Added option to refresh env
  • Loading branch information
gazzamc committed Oct 15, 2024
1 parent 5866d19 commit 2e36942
Show file tree
Hide file tree
Showing 4 changed files with 185 additions and 106 deletions.
16 changes: 15 additions & 1 deletion scripts/cli.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,20 @@ Do {
break
}
4 {
Clear-Host
setFilesChoice
break
}
5 {
Clear-Host
installProg "Uninstall"
break
}
6 {
Clear-Host
refresh
break
}
Default {
}
}
Expand All @@ -135,6 +145,8 @@ Do {
Write-Host "`t"
Write-Host "`tCopied/Hardlinked Path: $(getConfigProperty "newGamePath" )"
Write-Host "`t"
Write-Host "`t[Hardlink = 1, Copy = 2] : $(getConfigProperty "hardlinkOrCopy" )"
Write-Host "`t"
Write-Host "`tBypass Prompts: $(getConfigProperty "bypassPrompts" )"
Write-Host "`t"
Write-Host "`tStandalone Python: $(getConfigProperty "standalonePython" )"
Expand All @@ -145,7 +157,9 @@ Do {
1. Set Paths
2. Set Bypass Choice
3. Set Python Choice
4. Uninstall Dependencies (Choco Packages only)
4. Set Game File Choice
5. Uninstall Dependencies (Choco Packages only)
6. Refresh Environment (If Choco Packages are not detected)
q. Return
"
$setConfigOption = Read-Host "Choose an option"
Expand Down
Loading

0 comments on commit 2e36942

Please sign in to comment.