0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

modules/console: Add credits to console.

This commit is contained in:
Jason Volk 2018-12-19 12:29:09 -08:00
parent b4910319e0
commit eaea2c40a4

View file

@ -232,6 +232,10 @@ catch(const bad_command &e)
bool
console_cmd__help(opt &out, const string_view &line)
{
if(empty(line))
for(size_t i(0); !empty(info::credits[i]); ++i)
out << info::credits[i] << std::endl;
const auto cmd
{
find_cmd(line)
@ -411,6 +415,15 @@ console_cmd__exit(opt &out, const string_view &line)
return false;
}
bool
console_cmd__credits(opt &out, const string_view &line)
{
for(size_t i(0); !empty(info::credits[i]); ++i)
out << info::credits[i] << std::endl;
return true;
}
bool
console_cmd__debug(opt &out, const string_view &line)
{