MCPcopy Create free account
hub / github.com/DFHack/dfhack / addCommandToHistory

Function addCommandToHistory

library/LuaApi.cpp:1294–1299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1292}
1293
1294static 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 *

Callers

nothing calls this directly

Calls 3

ensureCommandHistoryFunction · 0.85
addMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected