mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Commands
- New 'exec' command that runs external programs, implemented by CmdExec. - Restructured code so that only Commands implements ::read_only and ::displays_id methods, while derived objects simply set flags. - Corrected column alignment in summary report.
This commit is contained in:
parent
52599dca63
commit
afc97d566c
11 changed files with 63 additions and 49 deletions
|
@ -40,9 +40,14 @@ public:
|
|||
|
||||
static Command* factory (const std::string&);
|
||||
|
||||
virtual bool read_only () const;
|
||||
virtual bool implements (const std::string&) const = 0;
|
||||
bool read_only () const;
|
||||
bool displays_id () const;
|
||||
virtual bool implements (const std::string&) = 0;
|
||||
virtual int execute (const std::string&, std::string&) = 0;
|
||||
|
||||
protected:
|
||||
bool _read_only;
|
||||
bool _displays_id;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue