diff --git a/scoop-pkg/scoop_pkg.ps1 b/scoop-pkg/scoop_pkg.ps1 new file mode 100644 index 0000000..6085077 --- /dev/null +++ b/scoop-pkg/scoop_pkg.ps1 @@ -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] + } +} \ No newline at end of file