feat: add media CLI commands #95
No reviewers
Labels
No labels
activitypub
admin
api
articles
auth
bug
cleanup
cli
comments
compatibility
config
contacts
database
deployment
design
dev-env
docs
documentation
email
enhancement
feature
federation
feed
homepage
implementation
integration
media
openapi
priority:high
priority:low
priority:medium
proof
public-routes
public-ui
release
safety
social
sources
status:active
status:canceled
status:done
status:inprogress
status:waiting
syndication
tailwind
template
test
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit!95
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/task-c1022af3-media-cli"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implement Slugkit media management commands in the CLI.
Task
#task-c1022af3
Changes
slug media upload <file> [--alt <text>] [--key <key>] [--json]slug media show <id> [--json]slug media delete <id> [--json]FormDatawithfile, optionalaltText, and optionalkeyTesting
Checklist
./scripts/pre-pr.shpassesPR Review
Summary
Reviewed PR #95 against task
task-c1022af3. The PR adds media upload/show/delete CLI commands, multipart upload support, local file validation before upload, human/JSON output, and mocked tests for success and common failures.Acceptance criteria
slug media upload <file>validates and reads a local file, builds multipartFormData, and callsPOST /media.slug media delete <id>callsDELETE /media/{id}and supports JSON delete confirmation../scripts/pre-pr.shpassed locally and Forgejo CI succeeded.Blocking issues
None.
Warnings
None.
Verification
make checkpassed locally before commit../scripts/pre-pr.shpassed locally.CI / build-lint-test (pull_request)issuccess.Verdict
Approved. Ready for human merge approval.
PR Review Worker Result