| 161 | } |
| 162 | |
| 163 | static command_result tweak(color_ostream &out, vector <string> ¶meters) { |
| 164 | if (parameters.empty() || parameters[0] == "list") { |
| 165 | out.print("tweaks:\n"); |
| 166 | for (auto & entry : get_status()) |
| 167 | out.print(" {:25}: {}\n", entry.first, entry.second ? "enabled" : "disabled"); |
| 168 | return CR_OK; |
| 169 | } |
| 170 | |
| 171 | string cmd = parameters[0]; |
| 172 | return enable_tweak(cmd, out, parameters); |
| 173 | } |
| 174 | |
| 175 | static int tweak_get_status(lua_State *L) { |
| 176 | Lua::Push(L, get_status()); |
nothing calls this directly
no test coverage detected