From dd71f019de0314f7b3f2ae1e0aa920e49e9f2759 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Tue, 24 Jun 2025 18:37:57 +0400 Subject: refactor: everything chaged --- 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