mirror of
https://github.com/stashapp/stash.git
synced 2025-12-30 12:14:50 +01:00
19 lines
533 B
Go
19 lines
533 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"`
|
|
}
|
|
|
|
// Commands is a slice of Command
|
|
type Commands []Command
|