Arguments
- Converted from Arguments to A3.
This commit is contained in:
@@ -49,10 +49,10 @@ CmdMerge::CmdMerge ()
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
int CmdMerge::execute (std::string& output)
|
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;
|
std::string file;
|
||||||
if (words.size ())
|
if (words.size ())
|
||||||
file = words[0]._first;
|
file = words[0];
|
||||||
|
|
||||||
std::string pushfile = "";
|
std::string pushfile = "";
|
||||||
std::string tmpfile = "";
|
std::string tmpfile = "";
|
||||||
|
|||||||
@@ -48,10 +48,10 @@ CmdPull::CmdPull ()
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
int CmdPull::execute (std::string& output)
|
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;
|
std::string file;
|
||||||
if (words.size ())
|
if (words.size ())
|
||||||
file = words[0]._first;
|
file = words[0];
|
||||||
|
|
||||||
Uri uri (file, "pull");
|
Uri uri (file, "pull");
|
||||||
uri.parse ();
|
uri.parse ();
|
||||||
|
|||||||
@@ -50,10 +50,10 @@ CmdPush::CmdPush ()
|
|||||||
// this is potentially on another machine, no checking can be performed.
|
// this is potentially on another machine, no checking can be performed.
|
||||||
int CmdPush::execute (std::string& output)
|
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;
|
std::string file;
|
||||||
if (words.size ())
|
if (words.size ())
|
||||||
file = words[0]._first;
|
file = words[0];
|
||||||
|
|
||||||
Uri uri (file, "push");
|
Uri uri (file, "push");
|
||||||
uri.parse ();
|
uri.parse ();
|
||||||
|
|||||||
Reference in New Issue
Block a user