From 6e77e0358abff4fe1997a9da882fae35c44a277a Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Tue, 24 Jun 2025 19:46:28 +0400 Subject: init: first commit --- scripts/filter_proper_md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/filter_proper_md (limited to 'scripts/filter_proper_md') 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) -- cgit v1.2.3