| 1292 | } |
| 1293 | |
| 1294 | static void addCommandToHistory(string id, string src_file, |
| 1295 | string command) { |
| 1296 | CommandHistory *history = ensureCommandHistory(id, src_file); |
| 1297 | history->add(command); |
| 1298 | history->save(std::filesystem::path{ src_file }); |
| 1299 | } |
| 1300 | |
| 1301 | /************************ |
| 1302 | * Wrappers for C++ API * |
nothing calls this directly
no test coverage detected