git-project-manager/cmd/dump.go

21 lines
307 B
Go
Raw Normal View History

2023-12-04 21:53:01 +00:00
package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
var dumpCmd = &cobra.Command{
Use: "dump",
2023-12-07 17:08:56 +00:00
Short: "Dump GitLab project cache",
Long: `Dumps cache to display`,
2023-12-04 21:53:01 +00:00
Run: func(cmd *cobra.Command, args []string) {
2023-12-07 17:08:56 +00:00
fmt.Println(cache.String())
2023-12-04 21:53:01 +00:00
},
}
func init() {
cacheCmd.AddCommand(dumpCmd)
}