mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdReportWeek: Added stubbed command
This commit is contained in:
parent
590ca948db
commit
e989f319dd
4 changed files with 45 additions and 0 deletions
|
@ -17,6 +17,7 @@ set (commands_SRCS CmdClear.cpp
|
||||||
CmdImport.cpp
|
CmdImport.cpp
|
||||||
CmdReport.cpp
|
CmdReport.cpp
|
||||||
CmdReportDay.cpp
|
CmdReportDay.cpp
|
||||||
|
CmdReportWeek.cpp
|
||||||
CmdStart.cpp
|
CmdStart.cpp
|
||||||
CmdStop.cpp
|
CmdStop.cpp
|
||||||
CmdTags.cpp
|
CmdTags.cpp
|
||||||
|
|
41
src/commands/CmdReportWeek.cpp
Normal file
41
src/commands/CmdReportWeek.cpp
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// Copyright 2015 - 2016, Paul Beckingham, Federico Hernandez.
|
||||||
|
//
|
||||||
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
// of this software and associated documentation files (the "Software"), to deal
|
||||||
|
// in the Software without restriction, including without limitation the rights
|
||||||
|
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
// copies of the Software, and to permit persons to whom the Software is
|
||||||
|
// furnished to do so, subject to the following conditions:
|
||||||
|
//
|
||||||
|
// The above copyright notice and this permission notice shall be included
|
||||||
|
// in all copies or substantial portions of the Software.
|
||||||
|
//
|
||||||
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
// SOFTWARE.
|
||||||
|
//
|
||||||
|
// http://www.opensource.org/licenses/mit-license.php
|
||||||
|
//
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <cmake.h>
|
||||||
|
#include <commands.h>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
int CmdReportWeek (
|
||||||
|
const CLI& cli,
|
||||||
|
Rules& rules,
|
||||||
|
Database& database)
|
||||||
|
{
|
||||||
|
std::cout << "# CmdReportWeek\n";
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
|
@ -51,5 +51,6 @@ int CmdTrack (const CLI&, Rules&, Database& );
|
||||||
int CmdUndo ( );
|
int CmdUndo ( );
|
||||||
|
|
||||||
int CmdReportDay (const CLI&, Rules&, Database& );
|
int CmdReportDay (const CLI&, Rules&, Database& );
|
||||||
|
int CmdReportWeek (const CLI&, Rules&, Database& );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -76,6 +76,7 @@ void initializeEntities (CLI& cli)
|
||||||
// Some command list themselves as extensions, to integrate with the real
|
// Some command list themselves as extensions, to integrate with the real
|
||||||
// extensions.
|
// extensions.
|
||||||
cli.entity ("extension", "day");
|
cli.entity ("extension", "day");
|
||||||
|
cli.entity ("extension", "week");
|
||||||
|
|
||||||
// Hint entities.
|
// Hint entities.
|
||||||
cli.entity ("hint", ":debug");
|
cli.entity ("hint", ":debug");
|
||||||
|
@ -243,6 +244,7 @@ int dispatchCommand (
|
||||||
else if (command == "import") status = CmdImport ( );
|
else if (command == "import") status = CmdImport ( );
|
||||||
else if (command == "report") status = CmdReport (cli, rules, database, extensions);
|
else if (command == "report") status = CmdReport (cli, rules, database, extensions);
|
||||||
else if (command == "day") status = CmdReportDay (cli, rules, database );
|
else if (command == "day") status = CmdReportDay (cli, rules, database );
|
||||||
|
else if (command == "week") status = CmdReportWeek (cli, rules, database );
|
||||||
else if (command == "start") status = CmdStart (cli, rules, database );
|
else if (command == "start") status = CmdStart (cli, rules, database );
|
||||||
else if (command == "stop") status = CmdStop (cli, rules, database );
|
else if (command == "stop") status = CmdStop (cli, rules, database );
|
||||||
else if (command == "tags") status = CmdTags ( rules, database );
|
else if (command == "tags") status = CmdTags ( rules, database );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue