diff --git a/kpr_docs/MANIFEST.in b/kpr_docs/MANIFEST.in new file mode 100644 index 0000000..833e9a1 --- /dev/null +++ b/kpr_docs/MANIFEST.in @@ -0,0 +1 @@ +include kpr_docs/kpr_docs.txt diff --git a/kpr_docs/__init__.py b/kpr_docs/__init__.py new file mode 100644 index 0000000..06d7405 Binary files /dev/null and b/kpr_docs/__init__.py differ diff --git a/kpr_docs/cli.py b/kpr_docs/cli.py new file mode 100644 index 0000000..9b2a03a --- /dev/null +++ b/kpr_docs/cli.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python3 +from rich.console import Console +from rich.markdown import Markdown +import importlib.resources + +def main(): + + try: + with importlib.resources.open_text('kpr_docs', 'kpr_docs.txt') as f: + print(f.read()) + except FileNotFoundError: + print("Documentation file not found.") diff --git a/kpr_docs/kpr_docs.txt b/kpr_docs/kpr_docs.txt new file mode 100644 index 0000000..c4038e8 --- /dev/null +++ b/kpr_docs/kpr_docs.txt @@ -0,0 +1,14 @@ +KPR_Man User Manuals KPR_Man + +NAME + KPR Man - display helpful information about my tool + +SYNOPSIS + Test + +DESCRIPTION + This is a fake man page to demonstrate packaging a CLI app. + + It can be extended to show multiple pages, handle arguments, etc. + +