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

26 lines
630 B
Go

package cmd
import (
"github.com/rsteube/carapace"
"github.com/rsteube/carapace-bin/pkg/actions/tools/git"
"github.com/spf13/cobra"
)
var remote_getUrlCmd = &cobra.Command{
Use: "get-url",
Short: "Retrieves the URLs for a remote",
Run: func(cmd *cobra.Command, args []string) {},
}
func init() {
carapace.Gen(remote_getUrlCmd).Standalone()
remote_getUrlCmd.Flags().Bool("all", false, "return all URLs")
remote_getUrlCmd.Flags().Bool("push", false, "query push URLs rather than fetch URLs")
remoteCmd.AddCommand(remote_getUrlCmd)
carapace.Gen(remote_getUrlCmd).PositionalCompletion(
git.ActionRemotes(),
)
}