blob: ed1be7fdd30b5b50f4020c502651a21c09df6a85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/env python3
import sys
from parse_frontmatter import parse_frontmatter
from pathlib import Path
def isproper(file):
frontmatter = parse_frontmatter(file)
if not frontmatter.get("draft"):
print(file)
script_dir = Path(__file__).resolve().parent
for arg in sys.argv[1:]:
isproper(arg)
|