Add basic declarative scoop manager
This commit is contained in:
parent
5caeecb0e7
commit
fc62233d3f
13
scoop-pkg/scoop_pkg.ps1
Normal file
13
scoop-pkg/scoop_pkg.ps1
Normal 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]
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user