reorder cli commands navigations are now into a nav sub group
This commit is contained in:
Regular → Executable
+3
-10
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env -S uv run
|
||||
"""
|
||||
browser-cli — Control your running browser from the terminal.
|
||||
"""
|
||||
@@ -10,7 +10,7 @@ import stat
|
||||
from pathlib import Path
|
||||
from rich.console import Console
|
||||
|
||||
from browser_cli.commands.navigate import cmd_open, cmd_reload, cmd_hard_reload, cmd_back, cmd_forward, cmd_focus
|
||||
from browser_cli.commands.navigate import nav_group
|
||||
from browser_cli.commands.tabs import tabs_group
|
||||
from browser_cli.commands.groups import group_group
|
||||
from browser_cli.commands.windows import windows_group
|
||||
@@ -44,15 +44,8 @@ def main():
|
||||
"""Control your running browser from the terminal via a Chrome extension."""
|
||||
|
||||
|
||||
# ── Top-level navigation commands ─────────────────────────────────────────────
|
||||
main.add_command(cmd_open, name="open")
|
||||
main.add_command(cmd_reload, name="reload")
|
||||
main.add_command(cmd_hard_reload, name="hard-reload")
|
||||
main.add_command(cmd_back, name="back")
|
||||
main.add_command(cmd_forward, name="forward")
|
||||
main.add_command(cmd_focus, name="focus")
|
||||
|
||||
# ── Sub-command groups ─────────────────────────────────────────────────────────
|
||||
main.add_command(nav_group)
|
||||
main.add_command(tabs_group)
|
||||
main.add_command(group_group)
|
||||
main.add_command(windows_group)
|
||||
|
||||
Reference in New Issue
Block a user