Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #178 from wwade/job-notify-arg
main: add a "-N/--notify" arg to run and notify together
- Loading branch information
Showing
4 changed files
with
148 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
#!/usr/bin/env python | ||
from __future__ import absolute_import, division, print_function | ||
|
||
import json | ||
import os | ||
import sys | ||
|
||
import simplejson as json | ||
|
||
print(json.dumps(sys.argv[1:])) | ||
dumpFile = os.getenv("SEND_EMAIL_DUMP_FILE") | ||
if dumpFile: | ||
with open(dumpFile, "w", encoding="utf-8") as fp: | ||
json.dump(sys.argv[1:], fp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters