Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): add TUI with trogon #249

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions manim_slides/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import click
import requests
from click_default_group import DefaultGroup
from trogon import tui

from .__version__ import __version__
from .checkhealth import checkhealth
Expand All @@ -13,6 +14,7 @@
from .wizard import init, wizard


@tui()
@click.group(cls=DefaultGroup, default="present", default_if_no_args=True)
@click.option(
"--notify-outdated-version/--silent",
Expand Down Expand Up @@ -71,5 +73,6 @@ def cli(notify_outdated_version: bool) -> None:
cli.add_command(render)
cli.add_command(wizard)


if __name__ == "__main__":
cli()
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ dependencies = [
"rich>=13.3.2",
"rtoml>=0.11.0",
"tqdm>=4.64.1",
"trogon>=0.6.0",
]
description = "Tool for live presentations using manim"
dynamic = ["readme", "version"]
Expand Down
59 changes: 59 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading