Skip to content

Commit c602b66

Browse files
committed
Add option to list repository by branch
1 parent 833074d commit c602b66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

infrahub_sdk/ctl/repository.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ async def add(
115115

116116
@app.command()
117117
async def list(
118+
branch: str = typer.Option(None, help="Branch on which to check the schema."),
118119
debug: bool = False,
119120
_: str = CONFIG_PARAM,
120121
) -> None:
@@ -140,7 +141,7 @@ async def list(
140141
}
141142

142143
query = Query(name="GetRepositoryStatus", query=repo_status_query)
143-
resp = await client.execute_graphql(query=query.render(), tracker="query-repository-list")
144+
resp = await client.execute_graphql(query=query.render(), branch_name=branch, tracker="query-repository-list")
144145

145146
table = Table(title="List of all Repositories")
146147

0 commit comments

Comments
 (0)