lint:ignore U1000 Ignore unused function temporarily for debugging
(projectDir string, s *ServiceStatus)
| 121 | |
| 122 | //lint:ignore U1000 Ignore unused function temporarily for debugging |
| 123 | func updateServiceStatusOnRemote(projectDir string, s *ServiceStatus) error { |
| 124 | if !envir.IsDevboxCloud() { |
| 125 | return nil |
| 126 | } |
| 127 | host, err := os.Hostname() |
| 128 | if err != nil { |
| 129 | return errors.WithStack(err) |
| 130 | } |
| 131 | |
| 132 | cloudDirPath := cloudFilePath(projectDir) |
| 133 | return writeServiceStatusFile(filepath.Join(cloudDirPath, host, s.Name+".json"), s) |
| 134 | } |
| 135 | |
| 136 | func readServiceStatus(path string) (*ServiceStatus, error) { |
| 137 | _, err := os.Stat(path) |
nothing calls this directly
no test coverage detected