github.com/mayra-cabrera/buffalo@v0.9.4-0.20170814145312-66d2e7772f11/plugins/command.go (about)

     1  package plugins
     2  
     3  // Command that the plugin supplies
     4  type Command struct {
     5  	// Name "foo"
     6  	Name string `json:"name"`
     7  	// BuffaloCommand "generate"
     8  	BuffaloCommand string `json:"buffalo_command"`
     9  	// Description "generates a foo"
    10  	Description string   `json:"description"`
    11  	Aliases     []string `json:"aliases"`
    12  	Binary      string   `json:"-"`
    13  }
    14  
    15  // Commands is a slice of Command
    16  type Commands []Command