Add non-interactive flag support to create-plugin command

- Add --name and --module flags for non-interactive plugin creation
- Implement flag parsing and validation using existing validation functions
- Support plugin names with or without mattermost-plugin- prefix
- Maintain backward compatibility with interactive mode as fallback
- Update help text and examples to document new flag options

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Felipe M 2025-07-28 16:50:42 +02:00
parent 07f21c6812
commit 18bfca1c2c
No known key found for this signature in database
GPG key ID: 52E5D65FCF99808A
4 changed files with 85 additions and 15 deletions

View file

@ -13,7 +13,8 @@ import (
"github.com/mattermost/mattermost/server/public/model"
)
//go:embed assets/.editorconfig assets/.gitattributes assets/.nvmrc assets/Makefile assets/*.yml assets/build/*.mk assets/.github/**/*.yml assets/webapp/.npmrc assets/webapp/*.config.js
//go:embed assets/.editorconfig assets/.gitattributes assets/.nvmrc assets/Makefile assets/*.yml
//go:embed assets/build/*.mk assets/.github/**/*.yml assets/webapp/.npmrc assets/webapp/*.config.js
var assetsFS embed.FS
const (