Prompt string function
(success: bool)
| 183 | |
| 184 | // Prompt string function |
| 185 | pub fn promptstr(success: bool) -> String |
| 186 | { |
| 187 | let csicol = Style::color("Magenta"); |
| 188 | let csierr = Style::color("Red"); |
| 189 | let csires = Style::reset(); |
| 190 | |
| 191 | format!("{}LOS:{} ", if success |
| 192 | { |
| 193 | csicol |
| 194 | } |
| 195 | else |
| 196 | { |
| 197 | csierr |
| 198 | }, |
| 199 | |
| 200 | csires) |
| 201 | } |
| 202 | |
| 203 | |
| 204 | // Run |
no test coverage detected