0b4e5d7f34a5 — Steve Fink 3 months ago
[run-taskcluster-job] add help
2 files changed, 11 insertions(+), 4 deletions(-)

M README.md
M bin/run-taskcluster-job
M README.md +2 -0
@@ 12,6 12,8 @@ Tools included:
  - get-taskcluster-logs : Retrieve groups of log files from a push by scraping taskcluster
  - em / vs : Open emacs or VSCode on the files touched by a patch, on a relevant
    line number
+ - viewsetup : Construct a virtual disk that exposes selected portions of a local disk,
+   to allow running a Windows install either physically or virtually
  - json : Interactive navigation of a JSON file
  - debug : Start up a debugger within emacs on various types of files
  - rr-exits : List out all rr recordings with their worst exit codes

          
M bin/run-taskcluster-job +9 -4
@@ 8,11 8,16 @@ import subprocess
 import shlex
 import sys
 
+# TODO:
+# [ ] Uh... figure out the workflow with --image or whatever. Right now, it creates a
+#     new container without the env file!
+
 parser = argparse.ArgumentParser("run a taskcluster image")
-parser.add_argument("--log-task-id")
-parser.add_argument("--load-task-id")
-parser.add_argument("--task-id")
-parser.add_argument("--image", default="docker.io/library/debian10-amd64-build:latest")
+parser.add_argument("--log-task-id", help="The task you are trying to replicate. Its log file will be scanned for the task ID that provided the base image to run.")
+parser.add_argument("--load-task-id", help="The toolchain task that generated the image to use. This will be passed to `mach load-taskcluster-image`.")
+parser.add_argument("--task-id", help="The task you are trying to replicate. Use this instead of --log-task-id if you have already pulled down the image.")
+parser.add_argument("--image", default="docker.io/library/debian10-amd64-build:latest",
+                    help="The image to create a docker container out of")
 parser.add_argument("--env-file")
 args = parser.parse_args()