github.com/singlemusic/buffalo@v0.16.30/buffalo/cmd/plugins/cache.go (about)

     1  package plugins
     2  
     3  import (
     4  	"github.com/gobuffalo/buffalo/buffalo/cmd/plugins/internal/cache"
     5  	"github.com/spf13/cobra"
     6  )
     7  
     8  // cacheCmd represents the cache command
     9  var cacheCmd = &cobra.Command{
    10  	Use:   "cache",
    11  	Short: "commands for managing the plugins cache",
    12  	RunE: func(cmd *cobra.Command, args []string) error {
    13  		return cache.ListCmd.RunE(cmd, args)
    14  	},
    15  }
    16  
    17  func init() {
    18  	cacheCmd.AddCommand(cache.CleanCmd)
    19  	cacheCmd.AddCommand(cache.ListCmd)
    20  	cacheCmd.AddCommand(cache.BuildCmd)
    21  	PluginsCmd.AddCommand(cacheCmd)
    22  }