mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 23:44:01 +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
|
||||
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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue