Build the user workspace link which navigates to the Coder web UI.
(serverURL *url.URL, workspace codersdk.Workspace)
| 1199 | |
| 1200 | // Build the user workspace link which navigates to the Coder web UI. |
| 1201 | func buildWorkspaceLink(serverURL *url.URL, workspace codersdk.Workspace) *url.URL { |
| 1202 | return serverURL.ResolveReference(&url.URL{Path: fmt.Sprintf("@%s/%s", workspace.OwnerName, workspace.Name)}) |
| 1203 | } |
| 1204 | |
| 1205 | // runLocal runs a command on the local machine. |
| 1206 | func runLocal(ctx context.Context, stdin io.Reader, name string, args ...string) ([]byte, error) { |
no outgoing calls