You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
310 B
20 lines
310 B
3 years ago
|
#!/usr/bin/python
|
||
|
import sys
|
||
|
import datetime
|
||
|
|
||
|
template = """# {date}
|
||
|
|
||
|
## Daily checklist
|
||
|
|
||
|
* [ ]
|
||
|
* [ ]
|
||
|
|
||
|
## Todo
|
||
|
|
||
|
## Notes"""
|
||
|
|
||
|
date = (datetime.date.today() if len(sys.argv) < 2
|
||
|
# Expecting filename in YYYY-MM-DD.foo format
|
||
|
else sys.argv[1].rsplit(".", 1)[0])
|
||
|
print(template.format(date=date))
|