Skip to content

Commit

Permalink
wiki-link: skeleton script
Browse files Browse the repository at this point in the history
  • Loading branch information
cpu committed Jun 24, 2023
1 parent a0ecae4 commit 134b93f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions wiki-link.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env python3

import sys


def usage() -> None:
print(f"{sys.argv[0]} <wiki src dir> <markdown dest dir>")


def main(wiki_src: str, markdown_dest: str) -> None:
print(f"wiki-sync'ing from {wiki_src} to {markdown_dest}")


if __name__ == "__main__":
if len(sys.argv) < 3:
usage()
exit(1)

main(sys.argv[1], sys.argv[2])

0 comments on commit 134b93f

Please sign in to comment.