29 lines
583 B
C++
29 lines
583 B
C++
#pragma once
|
|
|
|
#include "Command.hpp"
|
|
|
|
namespace Echoion::Core
|
|
{
|
|
|
|
class RpcInfoCommand : public Command
|
|
{
|
|
public:
|
|
|
|
void execute(const CommandContext& ctx) override;
|
|
std::string_view getDescription() const override
|
|
{
|
|
return "Get RPC server connection information";
|
|
}
|
|
std::string_view getUsage() const override { return ""; }
|
|
CommandCategory getCategory() const override
|
|
{
|
|
return CommandCategory::Utility;
|
|
}
|
|
std::vector<std::string_view> getAliases() const override
|
|
{
|
|
return {"rpc", "api", "remote"};
|
|
}
|
|
};
|
|
|
|
} // namespace Echoion::Core
|