core/categories.py

CLI-Anything · firefly-iii/agent-harness/cli_anything/firefly_iii/core/categories.py · python · Apache-2.0
crm

CLI commands for managing Firefly III categories via click.

# Source: https://github.com/HKUDS/CLI-Anything | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
r"""
Category management command group
"""

import click
from ..firefly_iii_cli import get_backend, output


@click.group()
def categories():
    """Manage categories"""
    pass


@categories.command(name="list")
@click.option("--limit", default=50, help="Limit results")
@click.option("--page", default=1, help="Page number")
def categories_list(limit, page):
    """List all categories"""
    backend = get_backend()
    params = {"limit": limit, "page": page}
    result = backend.get_categories(params)
    output(result)


@categories.command(name="get")
@click.option("--id", required=Tr

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key