diff options
| author | Danilo M. <danix@danix.xyz> | 2026-06-30 11:04:38 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-06-30 11:04:38 +0200 |
| commit | 28bde5b10abf904212dfc3cae937112134293053 (patch) | |
| tree | b12aba30abeaba15a10458032e11e7d01cb69bd2 /firefly_cli/commands/category.py | |
| parent | 49c9af4c213d5f420a405d860c0454fade26c297 (diff) | |
| download | firefly-cli-28bde5b10abf904212dfc3cae937112134293053.tar.gz firefly-cli-28bde5b10abf904212dfc3cae937112134293053.zip | |
feat: account, category, tag, auth commands
Diffstat (limited to 'firefly_cli/commands/category.py')
| -rw-r--r-- | firefly_cli/commands/category.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/firefly_cli/commands/category.py b/firefly_cli/commands/category.py new file mode 100644 index 0000000..a7ddbe8 --- /dev/null +++ b/firefly_cli/commands/category.py @@ -0,0 +1,8 @@ +# Copyright (C) 2026 Danilo M. <danix@danix.xyz> GPL-2.0-only +from firefly_cli import registry, output + +@registry.command("category list", help="list categories") +def cmd_list(args, ctx): + resp = ctx.client.request("GET", "/api/v1/categories") + output.emit(output.unwrap(resp), human=ctx.human) + return 0 |
