func GetLinks(zone, app, tenant string) ([]Link, error) {
	tenantStr := func() string {
		if len(tenant) == 0 {
			return ""
		}
		return "-tenant=" + tenant
	}()
	output, err := RunCmd(fmt.Sprintf("%s api -zone %s -app %s -fetch-links %s", ActlPath, zone, app, tenantStr))
	if err != nil {
		return []Link{}, err
	}
	listOfLinks := []Link{}
	yaml.Unmarshal([]byte(output), &listOfLinks)
	return listOfLinks, nil
}
// GetLinks - get links for zone, app for tenant
get links for zone, app for tenant
// GetLinks - get links for zone app for tenant
func GetLinks(zone, app, tenant string) ([]Link, error) {
	tenantStr := func() string {
		if len(tenant) == 0 {
			return ""
		}
		return "-tenant=" + tenant
	}()
	output, err := RunCmd(fmt.Sprintf("%s api -zone %s -app %s -fetch-links %s", ActlPath, zone, app, tenantStr))
	if err != nil {
		return []Link{}, err
	}
	listOfLinks := []Link{}
	yaml.Unmarshal([]byte(output), &listOfLinks)
	return listOfLinks, nil
}
func GetLinks ( zone , app , tenant string ) ( [ ] Link , error ) { tenantStr := func ( ) string { if len ( tenant ) == 0 { return " " } return " " + tenant } ( ) output , err := RunCmd ( fmt . Sprintf ( " " , ActlPath , zone , app , tenantStr ) ) if err != nil { return [ ] Link { } , err } listOfLinks := [ ] Link { } yaml . Unmarshal ( [ ] byte ( output ) , & listOfLinks ) return listOfLinks , nil }
get links for zone, app for tenant
get links for zone app for tenant