rsteube ab2ad8333c restructured pkg/actions
added `tools`
2021-08-09 14:47:31 +02:00

25 lines
529 B
Go

package cmd
import (
"github.com/rsteube/carapace"
"github.com/rsteube/carapace-bin/pkg/actions/tools/git"
"github.com/spf13/cobra"
)
var remote_pruneCmd = &cobra.Command{
Use: "prune",
Short: "Delete stale references",
Run: func(cmd *cobra.Command, args []string) {},
}
func init() {
carapace.Gen(remote_pruneCmd).Standalone()
remote_pruneCmd.Flags().BoolP("dry-run", "n", false, "dry run")
remoteCmd.AddCommand(remote_pruneCmd)
carapace.Gen(remote_pruneCmd).PositionalCompletion(
git.ActionRemotes(),
)
}