github.com/taubyte/tau-cli@v0.1.13-0.20240326000942-487f0d57edfc/lib/repository/url.go (about)

     1  package repositoryLib
     2  
     3  import "fmt"
     4  
     5  func GetRepositoryUrl(provider, fullName string) string {
     6  	switch provider {
     7  	case "github":
     8  		return "https://github.com/" + fullName
     9  	default:
    10  		panic(fmt.Sprintf("url for provider: `%s` not found", provider))
    11  	}
    12  }