mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Arguments
- Converted from Arguments to A3.
This commit is contained in:
parent
2f5bb14d33
commit
56af60ceaf
3 changed files with 6 additions and 6 deletions
|
@ -49,10 +49,10 @@ CmdMerge::CmdMerge ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdMerge::execute (std::string& output)
|
||||
{
|
||||
Arguments words = context.args.extract_simple_words ();
|
||||
std::vector <std::string> words = context.a3.extract_words ();
|
||||
std::string file;
|
||||
if (words.size ())
|
||||
file = words[0]._first;
|
||||
file = words[0];
|
||||
|
||||
std::string pushfile = "";
|
||||
std::string tmpfile = "";
|
||||
|
|
|
@ -48,10 +48,10 @@ CmdPull::CmdPull ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdPull::execute (std::string& output)
|
||||
{
|
||||
Arguments words = context.args.extract_simple_words ();
|
||||
std::vector <std::string> words = context.a3.extract_words ();
|
||||
std::string file;
|
||||
if (words.size ())
|
||||
file = words[0]._first;
|
||||
file = words[0];
|
||||
|
||||
Uri uri (file, "pull");
|
||||
uri.parse ();
|
||||
|
|
|
@ -50,10 +50,10 @@ CmdPush::CmdPush ()
|
|||
// this is potentially on another machine, no checking can be performed.
|
||||
int CmdPush::execute (std::string& output)
|
||||
{
|
||||
Arguments words = context.args.extract_simple_words ();
|
||||
std::vector <std::string> words = context.a3.extract_words ();
|
||||
std::string file;
|
||||
if (words.size ())
|
||||
file = words[0]._first;
|
||||
file = words[0];
|
||||
|
||||
Uri uri (file, "push");
|
||||
uri.parse ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue