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

Method AddAlias

library/Core.cpp:2122–2131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2120}
2121
2122bool Core::AddAlias(const std::string &name, const std::vector<std::string> &command, bool replace)
2123{
2124 std::lock_guard<std::recursive_mutex> lock(alias_mutex);
2125 if (!IsAlias(name) || replace)
2126 {
2127 aliases[name] = command;
2128 return true;
2129 }
2130 return false;
2131}
2132
2133bool Core::RemoveAlias(const std::string &name)
2134{

Callers 1

aliasMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected