-
-
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
24 additions
and
19 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,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"), | ||
}) | ||
} |
This file was deleted.
Oops, something went wrong.