- had to add a Type field to interface DbEntry so that db.List()
is able to distinguish between Upload and Form properly.
- added form describe and delete commands
- added --query parameter to form+upload list for filtering
This commit is contained in:
2023-03-30 10:22:57 +02:00
parent 26f2b25e22
commit 8a791d8017
13 changed files with 208 additions and 40 deletions

View File

@@ -236,6 +236,7 @@ Available Commands:
delete Delete an upload
describe Describe an upload.
download Download a file.
form Form commands
help Help about any command
list List uploads
upload Upload files
@@ -268,13 +269,9 @@ The `endpoint` is the **ephemerup** server running somewhere and the
## TODO
- also serve a html upload page
- add metrics (as in https://github.com/ansrivas/fiberprometheus)
- do not manually generate output urls, use fiber.GetRoute()
- upd: https://docs.gofiber.io/guide/error-handling/ to always use json output
- upctl: get rid of HandleResponse(), used only once anyway
- add form so that public users can upload
- use Writer for output.go so we can unit test the stuff in there
- add (default by time!) sorting to list outputs, and add sort flag