mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 08:24:08 +01:00
modules/console: Add credits to console.
This commit is contained in:
parent
b4910319e0
commit
eaea2c40a4
1 changed files with 13 additions and 0 deletions
|
@ -232,6 +232,10 @@ catch(const bad_command &e)
|
||||||
bool
|
bool
|
||||||
console_cmd__help(opt &out, const string_view &line)
|
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
|
const auto cmd
|
||||||
{
|
{
|
||||||
find_cmd(line)
|
find_cmd(line)
|
||||||
|
@ -411,6 +415,15 @@ console_cmd__exit(opt &out, const string_view &line)
|
||||||
return false;
|
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
|
bool
|
||||||
console_cmd__debug(opt &out, const string_view &line)
|
console_cmd__debug(opt &out, const string_view &line)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue