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

Method GetAliasCommand

library/Core.cpp:2172–2180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2170}
2171
2172std::string Core::GetAliasCommand(const std::string &name, bool ignore_params)
2173{
2174 std::lock_guard<std::recursive_mutex> lock(alias_mutex);
2175 if (!IsAlias(name) || aliases[name].empty())
2176 return name;
2177 if (ignore_params)
2178 return aliases[name][0];
2179 return join_strings(" ", aliases[name]);
2180}

Callers 2

enableMethod · 0.80
typeMethod · 0.80

Calls 2

join_stringsFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected