Skip to content

Commit

Permalink
Merge pull request #2507 from carapace-sh/git-version
Browse files Browse the repository at this point in the history
git: version
  • Loading branch information
rsteube authored Aug 17, 2024
2 parents 3048a42 + d07204a commit 546674e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions completers/git_completer/cmd/version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package cmd

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

var versionCmd = &cobra.Command{
Use: "version",
Short: "Display version information about Git",
Run: func(cmd *cobra.Command, args []string) {},
GroupID: groups[group_interrogator].ID,
}

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

versionCmd.Flags().Bool("build-options", false, "include additional information about how git was built")
rootCmd.AddCommand(versionCmd)
}

0 comments on commit 546674e

Please sign in to comment.