Skip to content
Merged
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
2 changes: 0 additions & 2 deletions src/apollo_cli/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
from apollo_cli.commands.enrich import enrich_app # noqa: E402
from apollo_cli.commands.install import install_app # noqa: E402
from apollo_cli.commands.jobs import jobs_app # noqa: E402
from apollo_cli.commands.news import news_app # noqa: E402
from apollo_cli.commands.notes import notes_app # noqa: E402
from apollo_cli.commands.people import people_app # noqa: E402
from apollo_cli.commands.pipelines import pipelines_app, stages_app # noqa: E402
Expand All @@ -55,7 +54,6 @@
conversations_app,
custom_fields_app,
emails_app,
news_app,
jobs_app,
usage_app,
install_app,
Expand Down
21 changes: 2 additions & 19 deletions src/apollo_cli/commands/calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

from __future__ import annotations

from typing import Annotated

from cyclopts import App, Parameter
from cyclopts import App

from apollo_cli.context import ctx
from apollo_cli.formatters.generic import list_table
from apollo_cli.output import output_json, output_list, output_markdown
from apollo_cli.output import output_list

calls_app = App(name="calls", help="Call activity.")

Expand Down Expand Up @@ -37,18 +35,3 @@ async def search() -> None:
format_fn=lambda items, **kw: list_table(items, CALL_LIST_COLUMNS, title="Calls", **kw),
resource_name="Calls",
)


@calls_app.command(name="list")
async def list_contact_calls(
contact_id: Annotated[str, Parameter(help="Contact ID")],
) -> None:
"""List calls for a specific contact."""
async with ctx.client() as client:
result = await client.list_contact_calls(contact_id)

if ctx.json_mode:
output_json(result)
else:
md = list_table(result, CALL_LIST_COLUMNS, title="Contact Calls", total=len(result), page=1)
output_markdown(md)
4 changes: 2 additions & 2 deletions src/apollo_cli/commands/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

JOBS_LIST_COLUMNS = [
("Title", "title"),
("Location", "location"),
("Department", "department"),
("City", "city"),
("State", "state"),
("URL", "url"),
("Posted", "posted_at"),
]
Expand Down
35 changes: 0 additions & 35 deletions src/apollo_cli/commands/news.py

This file was deleted.

Loading