diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2025-06-24 18:37:57 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2025-06-24 18:37:57 +0400 |
commit | dd71f019de0314f7b3f2ae1e0aa920e49e9f2759 (patch) | |
tree | 5b8513c4f2e7959eb45de75d93f331506b1cbd43 /scripts/filter_proper_md | |
parent | 014901951cc44a70ff3d4aaa4246592b08699d69 (diff) |
refactor: everything chageddev
Diffstat (limited to 'scripts/filter_proper_md')
-rwxr-xr-x | scripts/filter_proper_md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/filter_proper_md b/scripts/filter_proper_md new file mode 100755 index 0000000..ed1be7f --- /dev/null +++ b/scripts/filter_proper_md @@ -0,0 +1,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) |