mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-08 15:20:36 +02:00
CmdConfig: Extract write context validation into a separate method
This commit is contained in:
parent
2b0730d905
commit
5f8ec9bbe0
2 changed files with 38 additions and 27 deletions
|
@ -29,6 +29,7 @@
|
|||
|
||||
#include <string>
|
||||
#include <Command.h>
|
||||
#include <CLI2.h>
|
||||
|
||||
class CmdContext : public Command
|
||||
{
|
||||
|
@ -36,6 +37,7 @@ public:
|
|||
CmdContext ();
|
||||
int execute (std::string&);
|
||||
std::string joinWords (const std::vector <std::string>&, unsigned int, unsigned int = 0);
|
||||
bool validateWriteContext (const std::vector <A2>&, std::string&);
|
||||
static std::vector <std::string> getContexts ();
|
||||
void defineContext (const std::vector <std::string>&, std::stringstream&);
|
||||
void deleteContext (const std::vector <std::string>&, std::stringstream&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue