(status Status)
| 48 | } |
| 49 | |
| 50 | func writeStatus(status Status) error { |
| 51 | if err := os.MkdirAll(paths.GetConfigDir(), 0o700); err != nil { |
| 52 | return err |
| 53 | } |
| 54 | //nolint:gosec // marker file with no sensitive content |
| 55 | return os.WriteFile(statePath(), []byte(string(status)+"\n"), 0o644) |
| 56 | } |
| 57 | |
| 58 | // MarkDone records that the tour was started, so the first-run offer is not |
| 59 | // shown again. |