MCPcopy Index your code
hub / github.com/cloudfoundry/multiapps-cli-plugin / parseMtaArchiveArgument

Function parseMtaArchiveArgument

commands/deploy_command.go:486–494  ·  view source on GitHub ↗
(rawMtaArchive interface{})

Source from the content-addressed store, hash-verified

484}
485
486func parseMtaArchiveArgument(rawMtaArchive interface{}) (bool, string) {
487 switch castedMtaArchive := rawMtaArchive.(type) {
488 case *url.URL:
489 return true, castedMtaArchive.String()
490 case string:
491 return false, castedMtaArchive
492 }
493 return false, ""
494}
495
496func (c *DeployCommand) uploadFromUrl(url string, mtaClient mtaclient.MtaClientOperations, namespace string,
497 disableProgressBar bool) UploadFromUrlStatus {

Callers 1

executeInternalMethod · 0.85

Calls 1

StringMethod · 0.80

Tested by

no test coverage detected