MCPcopy Create free account
hub / github.com/LaunchPlatform/beanhub-cli / main

Function main

beanhub_cli/format.py:223–240  ·  view source on GitHub ↗
(
    env: Environment,
    filename: list[click.Path],
    backup_suffix: str,
    rename_account: list[tuple[str, str]],
    rename_currency: list[tuple[str, str]],
    stdin_mode: bool,
    backup: bool,
)

Source from the content-addressed store, hash-verified

221@click.option("-b", "--backup", is_flag=True, help="Create backup file")
222@pass_env
223def main(
224 env: Environment,
225 filename: list[click.Path],
226 backup_suffix: str,
227 rename_account: list[tuple[str, str]],
228 rename_currency: list[tuple[str, str]],
229 stdin_mode: bool,
230 backup: bool,
231):
232 format_beancount(
233 filenames=list(map(lambda item: pathlib.Path(str(item)), filename)),
234 backup_suffix=backup_suffix,
235 rename_account=rename_account,
236 rename_currency=rename_currency,
237 stdin_mode=stdin_mode,
238 backup=backup,
239 logger=env.logger,
240 )

Callers

nothing calls this directly

Calls 1

format_beancountFunction · 0.85

Tested by

no test coverage detected