mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
22 lines
639 B
Go
22 lines
639 B
Go
package plugins
|
|
|
|
// Command that the plugin supplies
|
|
type Command struct {
|
|
// Name "foo"
|
|
Name string `json:"name"`
|
|
// UseCommand "bar"
|
|
UseCommand string `json:"use_command"`
|
|
// BuffaloCommand "generate"
|
|
BuffaloCommand string `json:"buffalo_command"`
|
|
// Description "generates a foo"
|
|
Description string `json:"description,omitempty"`
|
|
Aliases []string `json:"aliases,omitempty"`
|
|
Binary string `json:"-"`
|
|
Flags []string `json:"flags,omitempty"`
|
|
// Filters events to listen to ("" or "*") is all events
|
|
ListenFor string `json:"listen_for,omitempty"`
|
|
}
|
|
|
|
// Commands is a slice of Command
|
|
type Commands []Command
|