(sh models.Shell, err error)
| 83 | } |
| 84 | |
| 85 | func onTestFail(sh models.Shell, err error) { |
| 86 | log.Warning("shell %s failed with: %s", tui.Bold(sh.Name), err) |
| 87 | sh.Enabled = false |
| 88 | if err := sh.Save(); err != nil { |
| 89 | log.Error("error while disabling shell %s: %s", sh.Name, err) |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | func onTestSuccess(sh models.Shell) { |
| 94 | log.Info("shell %s is working", tui.Bold(sh.Name)) |