Skip to content

Commit 236df44

Browse files
Copilotdgarros
andcommitted
Remove git-agent CLI utility and references
Co-authored-by: dgarros <[email protected]>
1 parent 69b9ef5 commit 236df44

File tree

5 files changed

+0
-202
lines changed

5 files changed

+0
-202
lines changed

backend/infrahub/cli/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from .context import CliContext
1111
from .db import app as db_app
1212
from .events import app as events_app
13-
from .git_agent import app as git_app
1413
from .server import app as server_app
1514
from .tasks import app as tasks_app
1615
from .upgrade import upgrade_cmd
@@ -25,7 +24,6 @@ def common(ctx: typer.Context) -> None:
2524

2625

2726
app.add_typer(server_app, name="server")
28-
app.add_typer(git_app, name="git-agent", hidden=True)
2927
app.add_typer(db_app, name="db")
3028
app.add_typer(events_app, name="events", help="Interact with the events system.", hidden=True)
3129
app.add_typer(tasks_app, name="tasks", hidden=True)

backend/infrahub/cli/git_agent.py

Lines changed: 0 additions & 154 deletions
This file was deleted.

backend/tests/unit/cli/test_cli.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ def test_db_app():
1717
assert "[OPTIONS] COMMAND [ARGS]" in result.stdout
1818

1919

20-
def test_git_agent_app():
21-
result = runner.invoke(app, ["git-agent", "--help"])
22-
assert result.exit_code == 0
23-
assert "[OPTIONS] COMMAND [ARGS]" in result.stdout
24-
25-
2620
def test_server_app():
2721
result = runner.invoke(app, ["server", "--help"])
2822
assert result.exit_code == 0

docs/docs/reference/infrahub-cli/infrahub-git-agent.mdx

Lines changed: 0 additions & 39 deletions
This file was deleted.

tasks/docs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ def _generate_infrahub_cli_documentation(context: Context) -> None:
160160
CLI_COMMANDS = (
161161
("infrahub.cli.db", "infrahub db", "infrahub-db"),
162162
("infrahub.cli.server", "infrahub server", "infrahub-server"),
163-
("infrahub.cli.git_agent", "infrahub git-agent", "infrahub-git-agent"),
164163
)
165164

166165
print(" - Generate Infrahub CLI documentation")

0 commit comments

Comments
 (0)