Skip to content

Commit

Permalink
added git-clear (#2537)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube authored Sep 22, 2024
1 parent ede3402 commit 6599193
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
23 changes: 23 additions & 0 deletions completers/git-clear_completer/cmd/root.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package cmd

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

var rootCmd = &cobra.Command{
Use: "git-clear",
Short: "Rigorously clean up a repository",
Long: "https://github.com/tj/git-extras/blob/master/Commands.md#git-clear",
Run: func(cmd *cobra.Command, args []string) {},
}

func Execute() error {
return rootCmd.Execute()
}
func init() {
carapace.Gen(rootCmd).Standalone()

rootCmd.Flags().BoolP("force", "f", false, "Force the clean, with no warning to the user")
rootCmd.Flags().BoolP("help", "h", false, "show help")
}
7 changes: 7 additions & 0 deletions completers/git-clear_completer/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main

import "github.com/carapace-sh/carapace-bin/completers/git-clear_completer/cmd"

func main() {
cmd.Execute()
}

0 comments on commit 6599193

Please sign in to comment.