Files
taskwarrior-2.x/src/commands/CmdSynch.cpp
Paul Beckingham de481a7eba Help
- Made all the usage strings for the 'help' command consistent with the
  implementation and with visual alignment.
2011-10-01 00:42:27 -04:00

76 lines
2.3 KiB
C++

////////////////////////////////////////////////////////////////////////////////
// taskwarrior - a command line task list manager.
//
// Copyright 2006 - 2011, Paul Beckingham, Federico Hernandez.
// All rights reserved.
//
// This program is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free Software
// Foundation; either version 2 of the License, or (at your option) any later
// version.
//
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
// details.
//
// You should have received a copy of the GNU General Public License along with
// this program; if not, write to the
//
// Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor,
// Boston, MA
// 02110-1301
// USA
//
////////////////////////////////////////////////////////////////////////////////
#define L10N // Localization complete.
#include <iostream>
#include <Context.h>
#include <text.h>
#include <i18n.h>
#include <CmdSynch.h>
extern Context context;
////////////////////////////////////////////////////////////////////////////////
CmdSynch::CmdSynch ()
{
_keyword = "synchronize";
_usage = "task synchronize";
_description = STRING_CMD_SYNCH_USAGE;
_read_only = false;
_displays_id = true;
}
////////////////////////////////////////////////////////////////////////////////
int CmdSynch::execute (std::string& output)
{
// TODO Tempporary.
std::cout << "\n"
<< "Task Server Synchronization is not implemented in 2.0.0beta1.\n"
<< "\n";
// TODO If no server is set up
// throw std::string ("Task server is not configured.");
// TODO Obtain credentials.
// TODO Obtain synch key.
// TODO Compose backlog into ticket.
// TODO Request synch.
// TODO Receive synch data.
// TODO Extract remote mods.
// TODO Extract new synch key.
// TODO Apply remote mods.
// TODO Store new synch key.
// TODO Truncate backlog.
return 1;
}
////////////////////////////////////////////////////////////////////////////////