git-project-manager/cmd/load.go
2023-12-07 12:08:56 -05:00

23 lines
447 B
Go

package cmd
import (
"github.com/spf13/cobra"
)
var loadCmd = &cobra.Command{
Use: "load",
Short: "Load GitLab Project Cache",
Long: `Used to initialize or update a new GitLab cache. With thousands
of projects, it would be too much work to hit the API every time a user
wants to find a new project.`,
Run: loadCache,
}
func loadCache(cmd *cobra.Command, args []string) {
cache.Refresh()
}
func init() {
cacheCmd.AddCommand(loadCmd)
}