Add deploy command to upload and enable plugin bundles

- New deploy.go implements RunDeployCommand function
- Auto-discovers plugin bundle from ./dist/ folder based on manifest
- Supports --bundle-path flag for custom bundle location
- Reuses existing client connection logic for server authentication
- Updated main.go to register deploy command and add help documentation
- Follows existing patterns for error handling and structured logging

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Felipe M 2025-07-14 19:17:25 +02:00
parent 6639dad2d6
commit 278958d1e4
No known key found for this signature in database
GPG key ID: 52E5D65FCF99808A
3 changed files with 108 additions and 1 deletions

View file

@ -5,7 +5,7 @@
## Builds and installs the plugin to a server.
.PHONY: deploy
deploy: dist
./build/bin/pluginctl deploy --bundle-path dist/$(BUNDLE_NAME)
pluginctl deploy --bundle-path dist/$(BUNDLE_NAME)
## Builds and installs the plugin to a server, updating the webapp automatically when changed.
.PHONY: watch