Skip to content

Commit

Permalink
Merge pull request #2485 from carapace-sh/git-verify-pack
Browse files Browse the repository at this point in the history
git: verify-pack
  • Loading branch information
rsteube authored Aug 15, 2024
2 parents 2178d3d + 4e7467f commit da21659
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 da21659

Please sign in to comment.