Skip to content

Commit

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

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

var rootCmd = &cobra.Command{
Use: "git-clear-soft",
Short: "Soft clean up a repository",
Long: "https://github.com/tj/git-extras/blob/master/Commands.md#git-clear-soft",
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")
}
7 changes: 7 additions & 0 deletions completers/git-clear-soft_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-soft_completer/cmd"

func main() {
cmd.Execute()
}

0 comments on commit 401c675

Please sign in to comment.