package project and add entrypoint
This commit is contained in:
@@ -16,6 +16,9 @@ dependencies = [
|
||||
"ynab>=1.9.0",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
catnab = "main:main"
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"ipdb>=0.13.13",
|
||||
@@ -24,3 +27,6 @@ dev = [
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
pythonpath = ["src"]
|
||||
|
||||
[tool.uv]
|
||||
package = true
|
||||
|
||||
@@ -217,6 +217,7 @@ def main():
|
||||
@main.command
|
||||
@click.option('--days', type=int, default=30)
|
||||
def sync(days: int):
|
||||
"""Auto-categorize Amazon transactions known to YNAB."""
|
||||
ctx = Context(days)
|
||||
for acct in amazon.get_accounts():
|
||||
sync_account(ctx, acct)
|
||||
|
||||
Reference in New Issue
Block a user