Alyssa Smith revised this gist . Go to revision
No changes
Alyssa Smith revised this gist . Go to revision
1 file changed, 16 insertions
scoophelper.py(file created)
| @@ -0,0 +1,16 @@ | |||
| 1 | + | #!/usr/bin/env python3 | |
| 2 | + | from flask import * | |
| 3 | + | ||
| 4 | + | app = Flask(__name__) | |
| 5 | + | ||
| 6 | + | @app.route("/") | |
| 7 | + | def index(): | |
| 8 | + | buckets = "\n".join(f"scoop bucket add {bucket}" for bucket in request.args.get("buckets","").split(",")) if "buckets" in request.args else "" | |
| 9 | + | packages = "\n".join(f"scoop install {package}" for package in request.args.get("pkgs","").split(",")) if "pkgs" in request.args else "" | |
| 10 | + | return f"""Set-ExecutionPolicy RemoteSigned -scope CurrentUser | |
| 11 | + | iwr -useb get.scoop.sh | iex | |
| 12 | + | scoop install git | |
| 13 | + | scoop update | |
| 14 | + | {buckets} | |
| 15 | + | {packages} | |
| 16 | + | """ | |
Newer
Older