mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
* Upgrade buffalo * Switch to go modules everywhere * Fixes from buffalo fix * Add missing modules from module list * Update vendored modules in /vendor * Stop using vendor directory for tests * Check go.mod and go.sum files on verify * Upgrade Buffalo from v0.13.0 to v0.13.1 * Fix test for new Buffalo Allow for new Buffalo code * Add test for endpoint with trailing slash
19 lines
466 B
Go
19 lines
466 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"`
|
|
Aliases []string `json:"aliases"`
|
|
Binary string `json:"-"`
|
|
}
|
|
|
|
// Commands is a slice of Command
|
|
type Commands []Command
|