dashboardURL builds the dashboard URL for an application page. Application pages are scoped via the /apps/{appID} path; account pages carry the application in an applicationId query parameter.
(baseURL, appID string, target dashboardTarget)
| 409 | // pages are scoped via the /apps/{appID} path; account pages carry the |
| 410 | // application in an applicationId query parameter. |
| 411 | func dashboardURL(baseURL, appID string, target dashboardTarget) string { |
| 412 | if target.accountScoped { |
| 413 | return fmt.Sprintf("%s/%s?applicationId=%s", baseURL, target.path, appID) |
| 414 | } |
| 415 | |
| 416 | return fmt.Sprintf("%s/apps/%s/%s", baseURL, appID, target.path) |
| 417 | } |
| 418 | |
| 419 | func listTargets(opts *OpenOptions) error { |
| 420 | fmt.Fprintln( |
no outgoing calls