5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-08 14:10:54 +08:00
wails/v3/internal/flags/service.go
Atterpac e316cd0719
[V3] Plugins implemenations (#3570)
* plugin handler and lifecycle

* rebase

* remove reflect

s

* remove Config and NewPlugin from plugin template

* Remove plugin manager, generation of plugin interface

* implement http handlers for services

remove log

trim path

prefix wails/services

* update plugine example

* Misc updates

* Ported plugins to services, rewritten example

* Added fileserver

* Update OnStartup and use a context for the application

* Rename PathPrefix to Route. Create docs.

* Use service config copy. Add Name to Service Options. Improve service generation.

* Use service config copy. Add Name to Service Options. Improve service generation. Update README

* Remove rogue db

* Update changelog.md

---------

Co-authored-by: Lea O'Anthony <lea.anthony@gmail.com>
2024-09-01 17:26:22 +10:00

15 lines
818 B
Go

package flags
type ServiceInit struct {
Name string `name:"n" description:"Name of plugin" default:"example_plugin"`
Description string `name:"d" description:"Description of plugin" default:"Example plugin"`
PackageName string `name:"p" description:"Package name for plugin" default:""`
OutputDir string `name:"o" description:"Output directory" default:"."`
Quiet bool `name:"q" description:"Suppress output to console"`
Author string `name:"a" description:"Author of plugin" default:""`
Version string `name:"v" description:"Version of plugin" default:""`
Website string `name:"w" description:"Website of plugin" default:""`
Repository string `name:"r" description:"Repository of plugin" default:""`
License string `name:"l" description:"License of plugin" default:""`
}