Added main files to the repo
This commit is contained in:
parent
d25fc3f0df
commit
5e3f6845a2
1
kpr_docs/MANIFEST.in
Normal file
1
kpr_docs/MANIFEST.in
Normal file
@ -0,0 +1 @@
|
|||||||
|
include kpr_docs/kpr_docs.txt
|
||||||
BIN
kpr_docs/__init__.py
Normal file
BIN
kpr_docs/__init__.py
Normal file
Binary file not shown.
12
kpr_docs/cli.py
Normal file
12
kpr_docs/cli.py
Normal 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
14
kpr_docs/kpr_docs.txt
Normal 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.
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user