mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-10 22:20:37 +02:00
zcmdcat: Initial infrastructure.
This commit is contained in:
parent
f5571c80c6
commit
8eb965d71d
2 changed files with 33 additions and 1 deletions
|
@ -47,8 +47,24 @@ public:
|
|||
bool displays_id () const;
|
||||
virtual int execute (std::string&) = 0;
|
||||
|
||||
enum class Category
|
||||
{
|
||||
unassigned,
|
||||
interrogator,
|
||||
report,
|
||||
operation,
|
||||
graphs,
|
||||
config,
|
||||
migration,
|
||||
misc,
|
||||
internal,
|
||||
// Whenever you extend this enum, update categoryNames.
|
||||
};
|
||||
Category _category;
|
||||
|
||||
protected:
|
||||
bool permission (const Task&, const std::string&, unsigned int);
|
||||
static const std::map <Command::Category, std::string> categoryNames;
|
||||
|
||||
protected:
|
||||
std::string _keyword;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue