1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 02:11:15 +02:00

Command: Remove examples()

This commit is contained in:
Eelco Dolstra 2020-12-23 13:21:31 +01:00
parent c9279b831e
commit 1047cb1e53
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
3 changed files with 0 additions and 49 deletions

View file

@ -228,25 +228,11 @@ struct Command : virtual Args
virtual void prepare() { };
virtual void run() = 0;
struct Example
{
std::string description;
std::string command;
};
typedef std::list<Example> Examples;
virtual Examples examples() { return Examples(); }
typedef int Category;
static constexpr Category catDefault = 0;
virtual Category category() { return catDefault; }
void printHelp(const string & programName, std::ostream & out) override;
nlohmann::json toJSON() override;
};
typedef std::map<std::string, std::function<ref<Command>()>> Commands;