Added main files to the repo

This commit is contained in:
focus_ed 2025-05-14 03:32:27 +00:00
parent d25fc3f0df
commit 5e3f6845a2
4 changed files with 27 additions and 0 deletions

1
kpr_docs/MANIFEST.in Normal file
View File

@ -0,0 +1 @@
include kpr_docs/kpr_docs.txt

BIN
kpr_docs/__init__.py Normal file

Binary file not shown.

12
kpr_docs/cli.py Normal file
View File

@ -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.")

14
kpr_docs/kpr_docs.txt Normal file
View File

@ -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.