Skip to content

Commit

Permalink
git: show-index
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Aug 15, 2024
1 parent da21659 commit 22ba5d7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
24 changes: 24 additions & 0 deletions completers/git_completer/cmd/showIndex.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package cmd

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

var showIndexCmd = &cobra.Command{
Use: "show-index",
Short: "Show packed archive index",
Run: func(cmd *cobra.Command, args []string) {},
GroupID: groups[group_low_level_interrogator].ID,
}

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

showIndexCmd.Flags().String("object-format", "", "specify the given object format for the index file")
rootCmd.AddCommand(showIndexCmd)

carapace.Gen(showIndexCmd).FlagCompletion(carapace.ActionMap{
"object-format": carapace.ActionValues("sha1", "sha256"),
})
}
19 changes: 0 additions & 19 deletions completers/git_completer/cmd/show_index_generated.go

This file was deleted.

0 comments on commit 22ba5d7

Please sign in to comment.