| 151 | } |
| 152 | |
| 153 | static std::map<string, bool> get_status() { |
| 154 | std::map<string, bool> list; |
| 155 | for (auto & entry : tweak_hooks) |
| 156 | list[entry.first] = entry.second.is_applied(); |
| 157 | for (auto & entry : tweak_onupdate_hooks) |
| 158 | list[entry.first] = entry.second.enabled; |
| 159 | |
| 160 | return list; |
| 161 | } |
| 162 | |
| 163 | static command_result tweak(color_ostream &out, vector <string> ¶meters) { |
| 164 | if (parameters.empty() || parameters[0] == "list") { |
no outgoing calls
no test coverage detected