Skip to content

Commit

Permalink
git: verify-pack
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Aug 15, 2024
1 parent 2178d3d commit 4e7467f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 20 deletions.
29 changes: 29 additions & 0 deletions completers/git_completer/cmd/verifyPack.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var verifyPackCmd = &cobra.Command{
Use: "verify-pack",
Short: "Validate packed Git archive files",
Run: func(cmd *cobra.Command, args []string) {},
GroupID: groups[group_low_level_interrogator].ID,
}

func init() {
carapace.Gen(verifyPackCmd).Standalone()

verifyPackCmd.Flags().BoolP("stat-only", "s", false, "only show the histogram of delta chain length")
verifyPackCmd.Flags().BoolP("verbose", "v", false, "show the list of objects contained in the pack")
rootCmd.AddCommand(verifyPackCmd)

carapace.Gen(verifyPackCmd).PositionalAnyCompletion(
carapace.ActionFiles(".idx").FilterArgs(),
)

carapace.Gen(verifyPackCmd).DashAnyCompletion(
carapace.ActionPositional(verifyPackCmd),
)
}
20 changes: 0 additions & 20 deletions completers/git_completer/cmd/verify_pack_generated.go

This file was deleted.

0 comments on commit 4e7467f

Please sign in to comment.