Skip to content

Commit

Permalink
git: version
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Aug 17, 2024
1 parent e99dbee commit d07204a
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 d07204a

Please sign in to comment.