mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-14 11:44:32 +00:00
21 lines
526 B
Go
21 lines
526 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var pack_refsCmd = &cobra.Command{
|
|
Use: "pack-refs",
|
|
Short: "Pack heads and tags for efficient repository access",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
GroupID: groups[group_manipulator].ID,
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(pack_refsCmd).Standalone()
|
|
pack_refsCmd.Flags().Bool("all", false, "pack everything")
|
|
pack_refsCmd.Flags().Bool("prune", false, "prune loose refs (default)")
|
|
rootCmd.AddCommand(pack_refsCmd)
|
|
}
|