mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2025-05-16 06:20:23 +01:00
21 lines
466 B
Python
21 lines
466 B
Python
"""script for generating man pages for the CLI."""
|
|
|
|
import typer
|
|
from click_man.core import write_man_pages
|
|
|
|
from obsws_cli import app
|
|
from obsws_cli.__about__ import __version__
|
|
|
|
|
|
def make_man():
|
|
"""Generate man pages for the CLI."""
|
|
cli = typer.main.get_command(app)
|
|
name = 'obsws-cli'
|
|
version = __version__
|
|
target_dir = './man'
|
|
write_man_pages(name, cli, version=version, target_dir=target_dir)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
make_man()
|