2025-02-26 17:42:21 +01:00

11 lines
321 B
Python
Executable File

#!/usr/bin/env python
import os
import sys
from contextlib import suppress
from pathlib import Path
with Path("created-with-tasks.txt").open("a", newline="\n") as cwt:
cwt.write(" ".join([os.environ["STAGE"]] + sys.argv[1:]) + "\n")
with suppress(FileNotFoundError):
Path("delete-in-tasks.txt").unlink()