From 0a8b588aa92dcc68b62153ab4b34dd2a1c67ee85 Mon Sep 17 00:00:00 2001 From: rsteube Date: Thu, 22 Sep 2022 21:14:41 +0200 Subject: [PATCH] added git-abort --- completers/git-abort_completer/cmd/root.go | 22 ++++++++++++++++++++++ completers/git-abort_completer/main.go | 7 +++++++ 2 files changed, 29 insertions(+) create mode 100644 completers/git-abort_completer/cmd/root.go create mode 100644 completers/git-abort_completer/main.go diff --git a/completers/git-abort_completer/cmd/root.go b/completers/git-abort_completer/cmd/root.go new file mode 100644 index 0000000000..22d3494be8 --- /dev/null +++ b/completers/git-abort_completer/cmd/root.go @@ -0,0 +1,22 @@ +package cmd + +import ( + "github.com/rsteube/carapace" + "github.com/spf13/cobra" +) + +var rootCmd = &cobra.Command{ + Use: "git-abort", + Short: "Abort current rebase, merge or cherry-pick, without the need to find exact command in history", + Long: "https://github.com/tj/git-extras/blob/master/Commands.md#git-abort", + Run: func(cmd *cobra.Command, args []string) {}, +} + +func Execute() error { + return rootCmd.Execute() +} +func init() { + carapace.Gen(rootCmd).Standalone() + + rootCmd.Flags().Bool("help", false, "show help") +} diff --git a/completers/git-abort_completer/main.go b/completers/git-abort_completer/main.go new file mode 100644 index 0000000000..b6804d4d45 --- /dev/null +++ b/completers/git-abort_completer/main.go @@ -0,0 +1,7 @@ +package main + +import "github.com/rsteube/carapace-bin/completers/git-abort_completer/cmd" + +func main() { + cmd.Execute() +}