refactor: move branch command to branch ls subcommand

This commit is contained in:
jt
2026-09-22 01:20:33 -03:00
parent d383fa4003
commit 5ece118c05
3 changed files with 10 additions and 4 deletions
+6
View File
@@ -0,0 +1,6 @@
import typer
from git_flow.command.branch import ls
app = typer.Typer(name="branch")
app.add_typer(ls.app)
@@ -3,12 +3,12 @@ from typing import Annotated
import typer
from rich.console import Console
import git_flow.command.base as base
from git_flow import (
TRASH_BRANCH_PREFIX,
WIP_BRANCH_PREFIX,
GitFlowError,
)
from git_flow.command import base
from git_flow.git import Git
BRANCH_FORMAT = "%(refname:short)"
@@ -18,7 +18,7 @@ console = Console()
@app.command()
def branch(
def ls(
environment: Annotated[
str | None,
typer.Argument(