github.com/argoproj/argo-cd/v3@v3.2.1/cmd/argocd-k8s-auth/commands/azure_no_cgo.go (about)

     1  //go:build darwin && !cgo
     2  
     3  // Package commands
     4  // This file is used when the GOOS is darwin and CGO is not enabled.
     5  // It provides a no-op implementation of newAzureCommand to allow goreleaser to build
     6  // a darwin binary on a linux machine.
     7  package commands
     8  
     9  import (
    10  	"log"
    11  
    12  	"github.com/spf13/cobra"
    13  
    14  	"github.com/argoproj/argo-cd/v3/util/workloadidentity"
    15  )
    16  
    17  func newAzureCommand() *cobra.Command {
    18  	command := &cobra.Command{
    19  		Use: "azure",
    20  		Run: func(c *cobra.Command, _ []string) {
    21  			log.Fatalf(workloadidentity.CGOError)
    22  		},
    23  	}
    24  	return command
    25  }