func UpdateLinks(zone, app, tenant string, links []Link) (string, error) {
	tenantStr := func() string {
		if len(tenant) == 0 {
			return ""
		}
		return "-tenant=" + tenant
	}()
	input, _ := yaml.Marshal(links)
	return RunCmdWithInput(fmt.Sprintf("%s api -zone %s -app %s -update-links %s", ActlPath, zone, app, tenantStr), string(input))
}
// UpdateLinks - update links for an app
update links for an app
// UpdateLinks - update links for an app
func UpdateLinks(zone, app, tenant string, links []Link) (string, error) {
	tenantStr := func() string {
		if len(tenant) == 0 {
			return ""
		}
		return "-tenant=" + tenant
	}()
	input, _ := yaml.Marshal(links)
	return RunCmdWithInput(fmt.Sprintf("%s api -zone %s -app %s -update-links %s", ActlPath, zone, app, tenantStr), string(input))
}
func UpdateLinks ( zone , app , tenant string , links [ ] Link ) ( string , error ) { tenantStr := func ( ) string { if len ( tenant ) == 0 { return " " } return " " + tenant } ( ) input , _ := yaml . Marshal ( links ) return RunCmdWithInput ( fmt . Sprintf ( " " , ActlPath , zone , app , tenantStr ) , string ( input ) ) }
update links for an app
update links for an app