hookmeup

A Git hook to automate your Pipenv and Django workflow
git clone git://git.danielmoch.com/hookmeup.git
Log | Files | Refs | README | LICENSE

commit 8e1a53a0c4271e1c9e790a5f688f791fd7f5ac07
parent 74892c32fda1c2ae6df5cd279e51eb89e60f8e20
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sat, 15 Sep 2018 23:43:56 -0400

It's the multiline stuff that's killing me

Diffstat:
Mmake.bat | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/make.bat b/make.bat @@ -9,8 +9,7 @@ except:^ from urllib.request import pathname2url^ -webbrowser.open("file://" + pathname2url(os.path.abspath(sys.argv[1])))^ - +webbrowser.open("file://" + pathname2url(os.path.abspath(sys.argv[1]))) set PRINT_HELP_PYSCRIPT=import re, sys^ for line in sys.stdin:^ @@ -21,7 +20,7 @@ for line in sys.stdin:^ target, help = match.groups()^ - print("%-20s %s" % (target, help))^ + print("%-20s %s" % (target, help)) if "%PYTHON%"=="" ( set PYTHON=python @@ -35,7 +34,7 @@ set PIPENV=pipenv set PIPRUN=%PIPENV% run set PIPINST=%PIPENV% --bare install --dev --skip-lock set BROWSER=%PYTHON% -c %BROWSER_PYSCRIPT% - +set if "%1" == "help" ( %PYTHON% -c "%PRINT_HELP_PYSCRIPT%" < %~f0 goto :end