(w io.Writer, cmd string)
| 1537 | } |
| 1538 | |
| 1539 | func SlimUnsupported(w io.Writer, cmd string) { |
| 1540 | _, _ = fmt.Fprintf(w, "You are using a 'slim' build of Coder, which does not support the %s subcommand.\n", pretty.Sprint(cliui.DefaultStyles.Code, cmd)) |
| 1541 | _, _ = fmt.Fprintln(w, "") |
| 1542 | _, _ = fmt.Fprintln(w, "Please use a build of Coder from GitHub releases:") |
| 1543 | _, _ = fmt.Fprintln(w, " https://github.com/coder/coder/releases") |
| 1544 | |
| 1545 | //nolint:revive |
| 1546 | os.Exit(1) |
| 1547 | } |
| 1548 | |
| 1549 | func defaultUpgradeMessage(version string) string { |
| 1550 | // Our installation script doesn't work on Windows, so instead we direct the user |
no test coverage detected