showStatus iterates all harden subjects and prints status of each (checks real status on system)
()
| 98 | // showStatus iterates all harden subjects and prints status of each |
| 99 | // (checks real status on system) |
| 100 | func showStatus() { |
| 101 | for _, hardenSubject := range allHardenSubjects { |
| 102 | if hardenSubject.IsHardened() { |
| 103 | eventText := fmt.Sprintf("%s is now hardened\r\n", hardenSubject.Name()) |
| 104 | ShowIsHardened(hardenSubject.Name()) |
| 105 | Info.Print(eventText) |
| 106 | } else { |
| 107 | eventText := fmt.Sprintf("%s is now NOT hardened\r\n", hardenSubject.Name()) |
| 108 | ShowNotHardened(hardenSubject.Name()) |
| 109 | Info.Print(eventText) |
| 110 | } |
| 111 | } |
| 112 | } |
no test coverage detected