2023-08-05 13:25:28 +02:00

25 lines
571 B
Go

package cmd
import (
"github.com/rsteube/carapace"
"github.com/rsteube/carapace-bin/pkg/actions/tools/git"
"github.com/spf13/cobra"
)
var remote_updateCmd = &cobra.Command{
Use: "update",
Short: "Fetch updates for remote",
Run: func(cmd *cobra.Command, args []string) {},
}
func init() {
carapace.Gen(remote_updateCmd).Standalone()
remote_updateCmd.Flags().BoolP("prune", "p", false, "prune remotes after fetching")
remoteCmd.AddCommand(remote_updateCmd)
carapace.Gen(remote_updateCmd).PositionalAnyCompletion(
git.ActionRemotes().FilterArgs(),
)
}