Add basic declarative scoop manager

This commit is contained in:
Isaac Shoebottom 2023-11-24 11:36:58 -04:00
parent 5caeecb0e7
commit fc62233d3f

13
scoop-pkg/scoop_pkg.ps1 Normal file
View File

@ -0,0 +1,13 @@
if ($args[0] -eq "freeze") {
if (!$args[1]) {
scoop export | Out-File -Encoding utf8 -FilePath $env:HOMEPATH\scoop_pkg.json
} else {
scoop export | Out-File -Encoding utf8 -FilePath $args[1]
}
} else {
if (!$args[0]) {
scoop import $env:HOMEPATH\scoop_pkg.json
} else {
scoop import $args[0]
}
}