-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
29 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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), | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.