Add check subcommand to manifest command
- Add 'check' case to manifest command that validates plugin manifest using manifest.IsValid() - Return appropriate exit codes: 0 for valid, 1 for invalid manifests - Update help text and error messages to include the new subcommand - Log validation results using structured logging 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
873bf78c22
commit
6639dad2d6
3 changed files with 12 additions and 5 deletions
|
@ -9,7 +9,7 @@ all: check-style test dist
|
|||
## Ensures the plugin manifest is valid
|
||||
.PHONY: manifest-check
|
||||
manifest-check:
|
||||
./build/bin/manifest check
|
||||
pluginctl manifest check
|
||||
|
||||
|
||||
## Builds the server, if it exists, for all supported architectures, unless MM_SERVICESETTINGS_ENABLEDEVELOPER is set.
|
||||
|
@ -55,7 +55,7 @@ endif
|
|||
bundle:
|
||||
rm -rf dist/
|
||||
mkdir -p dist/$(PLUGIN_ID)
|
||||
./build/bin/manifest dist
|
||||
cp plugin.json dist/$(PLUGIN_ID)/plugin.json
|
||||
ifneq ($(wildcard $(ASSETS_DIR)/.),)
|
||||
cp -r $(ASSETS_DIR) dist/$(PLUGIN_ID)/
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue