mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-30 11:27:19 +02:00
CLI
- Stubbed methods for further parsing.
This commit is contained in:
parent
1639e6bb68
commit
b0cf4adc4e
2 changed files with 14 additions and 1 deletions
|
@ -28,12 +28,17 @@
|
|||
#include <iostream>
|
||||
#include <Context.h>
|
||||
#include <CLI.h>
|
||||
#include <util.h>
|
||||
#include <i18n.h>
|
||||
|
||||
extern Context context;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
CLI::CLI ()
|
||||
: _program ("")
|
||||
, _rc ("")
|
||||
, _command ("")
|
||||
, _readOnly (false)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
10
src/CLI.h
10
src/CLI.h
|
@ -38,10 +38,13 @@ public:
|
|||
void alias (const std::string&, const std::string&);
|
||||
void entity (const std::string&, const std::string&);
|
||||
void initialize (int, const char**);
|
||||
void aliasExpansion ();
|
||||
void categorize ();
|
||||
bool exactMatch (const std::string&, const std::string&) const;
|
||||
bool canonicalize (std::string&, const std::string&, const std::string&) const;
|
||||
|
||||
private:
|
||||
void extractOverrides ();
|
||||
void aliasExpansion ();
|
||||
void dump (const std::string&) const;
|
||||
|
||||
public:
|
||||
|
@ -51,6 +54,11 @@ public:
|
|||
std::vector <std::string> _args;
|
||||
std::string _rc;
|
||||
std::map <std::string, std::string> _overrides;
|
||||
|
||||
std::string _command;
|
||||
bool _readOnly;
|
||||
std::vector <std::string> _filter;
|
||||
std::vector <std::string> _modifications;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue