mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-14 11:44:32 +00:00
22 lines
540 B
Go
22 lines
540 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var prunePackedCmd = &cobra.Command{
|
|
Use: "prune-packed",
|
|
Short: "Remove extra objects that are already in pack files",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
GroupID: groups[group_low_level_manipulator].ID,
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(prunePackedCmd).Standalone()
|
|
|
|
prunePackedCmd.Flags().BoolP("dry-run", "n", false, "dry run")
|
|
prunePackedCmd.Flags().BoolP("quiet", "q", false, "be quiet")
|
|
rootCmd.AddCommand(prunePackedCmd)
|
|
}
|