mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-06 07:52:55 +00:00
23 lines
520 B
Go
23 lines
520 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/carapace-sh/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var rootCmd = &cobra.Command{
|
|
Use: "git-archive-file",
|
|
Short: "Export the current HEAD of the git repository to an archive",
|
|
Long: "https://github.com/tj/git-extras/blob/master/Commands.md#git-archive-file",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func Execute() error {
|
|
return rootCmd.Execute()
|
|
}
|
|
func init() {
|
|
carapace.Gen(rootCmd).Standalone()
|
|
|
|
rootCmd.Flags().Bool("help", false, "Display help message")
|
|
}
|