From 7746e9cf90013e128ccf62694b1dfb822e6422d1 Mon Sep 17 00:00:00 2001 From: Fanir Date: Mon, 21 Mar 2022 02:16:45 +0100 Subject: [PATCH] set WORKDIR for final image, improve help text --- gamedl | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/gamedl b/gamedl index 8183fb2..e550abb 100755 --- a/gamedl +++ b/gamedl @@ -20,6 +20,7 @@ RUN \ wget -O trovefix.patch 'https://patch-diff.githubusercontent.com/raw/xtream1101/humblebundle-downloader/pull/59.patch' &&\ git apply trovefix.patch &&\ pip install -e . +WORKDIR /dl CMD echo "Usage: gamedl []" EOF } @@ -46,11 +47,23 @@ function run_image () { function show_help () { echo "Usage $0 [] -Commands: + +DESCRIPTION + Run game platform downloaders in a docker container. Currently supported are: + - Humble (https://pypi.org/project/humblebundle-downloader/) + - Itch.io (https://pypi.org/project/itchiodl/) + + The downloaders run in a docker container with your current working dir + mounted to /dl inside the container. + +COMMANDS + Every command except help and build get forwarded into the container, + so you can run arbitrary commands if you know what you are doing. + hbd - Run the Humble downloader. + Run the Humble downloader. Run 'gamedl hbd -h' for help. itch-download - Run the Itch.io downloader. + Run the Itch.io downloader. Run 'gamedl itch-download -h' for help. build (Re)build the gamedl-image.