Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
4d054396
Commit
4d054396
authored
May 04, 2015
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move commands to their own directory.
parent
e17b5193
Changes
37
Show whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
41 additions
and
41 deletions
+41
-41
test/AddCommandTest.py
test/AddCommandTest.py
+2
-2
test/AppendCommandTest.py
test/AppendCommandTest.py
+1
-1
test/ArchiveCommandTest.py
test/ArchiveCommandTest.py
+1
-1
test/DeleteCommandTest.py
test/DeleteCommandTest.py
+1
-1
test/DepCommandTest.py
test/DepCommandTest.py
+1
-1
test/DepriCommandTest.py
test/DepriCommandTest.py
+1
-1
test/DoCommandTest.py
test/DoCommandTest.py
+1
-1
test/IcalCommandTest.py
test/IcalCommandTest.py
+1
-1
test/ListCommandTest.py
test/ListCommandTest.py
+1
-1
test/ListContextCommandTest.py
test/ListContextCommandTest.py
+1
-1
test/ListProjectCommandTest.py
test/ListProjectCommandTest.py
+1
-1
test/PostponeCommandTest.py
test/PostponeCommandTest.py
+1
-1
test/PriorityCommandTest.py
test/PriorityCommandTest.py
+1
-1
test/SortCommandTest.py
test/SortCommandTest.py
+1
-1
test/TagCommandTest.py
test/TagCommandTest.py
+1
-1
topydo/Commands.py
topydo/Commands.py
+16
-16
topydo/cli/CLI.py
topydo/cli/CLI.py
+1
-1
topydo/cli/CLIApplicationBase.py
topydo/cli/CLIApplicationBase.py
+2
-2
topydo/cli/Prompt.py
topydo/cli/Prompt.py
+2
-2
topydo/commands/AddCommand.py
topydo/commands/AddCommand.py
+0
-0
topydo/commands/AppendCommand.py
topydo/commands/AppendCommand.py
+0
-0
topydo/commands/ArchiveCommand.py
topydo/commands/ArchiveCommand.py
+0
-0
topydo/commands/DCommand.py
topydo/commands/DCommand.py
+0
-0
topydo/commands/DeleteCommand.py
topydo/commands/DeleteCommand.py
+1
-1
topydo/commands/DepCommand.py
topydo/commands/DepCommand.py
+0
-0
topydo/commands/DepriCommand.py
topydo/commands/DepriCommand.py
+0
-0
topydo/commands/DoCommand.py
topydo/commands/DoCommand.py
+1
-1
topydo/commands/EditCommand.py
topydo/commands/EditCommand.py
+1
-1
topydo/commands/ExitCommand.py
topydo/commands/ExitCommand.py
+0
-0
topydo/commands/IcalCommand.py
topydo/commands/IcalCommand.py
+1
-1
topydo/commands/ListCommand.py
topydo/commands/ListCommand.py
+0
-0
topydo/commands/ListContextCommand.py
topydo/commands/ListContextCommand.py
+0
-0
topydo/commands/ListProjectCommand.py
topydo/commands/ListProjectCommand.py
+0
-0
topydo/commands/PostponeCommand.py
topydo/commands/PostponeCommand.py
+0
-0
topydo/commands/PriorityCommand.py
topydo/commands/PriorityCommand.py
+0
-0
topydo/commands/SortCommand.py
topydo/commands/SortCommand.py
+0
-0
topydo/commands/TagCommand.py
topydo/commands/TagCommand.py
+0
-0
No files found.
test/AddCommandTest.py
View file @
4d054396
...
@@ -17,8 +17,8 @@
...
@@ -17,8 +17,8 @@
from
datetime
import
date
from
datetime
import
date
import
unittest
import
unittest
from
topydo.
lib
import
AddCommand
from
topydo.
commands
import
AddCommand
from
topydo.
lib
import
ListCommand
from
topydo.
commands
import
ListCommand
import
CommandTest
import
CommandTest
from
topydo.lib.Config
import
config
from
topydo.lib.Config
import
config
from
topydo.lib
import
TodoList
from
topydo.lib
import
TodoList
...
...
test/AppendCommandTest.py
View file @
4d054396
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
import
unittest
import
unittest
from
topydo.
lib
.AppendCommand
import
AppendCommand
from
topydo.
commands
.AppendCommand
import
AppendCommand
import
CommandTest
import
CommandTest
from
topydo.lib.TodoList
import
TodoList
from
topydo.lib.TodoList
import
TodoList
...
...
test/ArchiveCommandTest.py
View file @
4d054396
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
import
unittest
import
unittest
from
topydo.
lib
.ArchiveCommand
import
ArchiveCommand
from
topydo.
commands
.ArchiveCommand
import
ArchiveCommand
import
CommandTest
import
CommandTest
import
TestFacilities
import
TestFacilities
from
topydo.lib.TodoList
import
TodoList
from
topydo.lib.TodoList
import
TodoList
...
...
test/DeleteCommandTest.py
View file @
4d054396
...
@@ -18,7 +18,7 @@ import unittest
...
@@ -18,7 +18,7 @@ import unittest
import
CommandTest
import
CommandTest
from
topydo.lib.Config
import
config
from
topydo.lib.Config
import
config
from
topydo.
lib
.DeleteCommand
import
DeleteCommand
from
topydo.
commands
.DeleteCommand
import
DeleteCommand
from
topydo.lib.TodoList
import
TodoList
from
topydo.lib.TodoList
import
TodoList
from
topydo.lib.TodoListBase
import
InvalidTodoException
from
topydo.lib.TodoListBase
import
InvalidTodoException
...
...
test/DepCommandTest.py
View file @
4d054396
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
import
unittest
import
unittest
import
CommandTest
import
CommandTest
from
topydo.
lib
.DepCommand
import
DepCommand
from
topydo.
commands
.DepCommand
import
DepCommand
from
topydo.lib.TodoList
import
TodoList
from
topydo.lib.TodoList
import
TodoList
class
DepCommandTest
(
CommandTest
.
CommandTest
):
class
DepCommandTest
(
CommandTest
.
CommandTest
):
...
...
test/DepriCommandTest.py
View file @
4d054396
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
import
unittest
import
unittest
import
CommandTest
import
CommandTest
from
topydo.
lib
.DepriCommand
import
DepriCommand
from
topydo.
commands
.DepriCommand
import
DepriCommand
from
topydo.lib.TodoList
import
TodoList
from
topydo.lib.TodoList
import
TodoList
class
DepriCommandTest
(
CommandTest
.
CommandTest
):
class
DepriCommandTest
(
CommandTest
.
CommandTest
):
...
...
test/DoCommandTest.py
View file @
4d054396
...
@@ -18,7 +18,7 @@ from datetime import date, timedelta
...
@@ -18,7 +18,7 @@ from datetime import date, timedelta
import
unittest
import
unittest
import
CommandTest
import
CommandTest
from
topydo.
lib
.DoCommand
import
DoCommand
from
topydo.
commands
.DoCommand
import
DoCommand
from
topydo.lib.TodoList
import
TodoList
from
topydo.lib.TodoList
import
TodoList
def
_yes_prompt
(
self
):
def
_yes_prompt
(
self
):
...
...
test/IcalCommandTest.py
View file @
4d054396
...
@@ -19,7 +19,7 @@ import unittest
...
@@ -19,7 +19,7 @@ import unittest
from
topydo.lib.Config
import
config
from
topydo.lib.Config
import
config
import
CommandTest
import
CommandTest
from
topydo.
lib
.IcalCommand
import
IcalCommand
from
topydo.
commands
.IcalCommand
import
IcalCommand
import
TestFacilities
import
TestFacilities
class
IcalCommandTest
(
CommandTest
.
CommandTest
):
class
IcalCommandTest
(
CommandTest
.
CommandTest
):
...
...
test/ListCommandTest.py
View file @
4d054396
...
@@ -18,7 +18,7 @@ import unittest
...
@@ -18,7 +18,7 @@ import unittest
from
topydo.lib.Config
import
config
from
topydo.lib.Config
import
config
import
CommandTest
import
CommandTest
from
topydo.
lib
.ListCommand
import
ListCommand
from
topydo.
commands
.ListCommand
import
ListCommand
import
TestFacilities
import
TestFacilities
class
ListCommandTest
(
CommandTest
.
CommandTest
):
class
ListCommandTest
(
CommandTest
.
CommandTest
):
...
...
test/ListContextCommandTest.py
View file @
4d054396
...
@@ -18,7 +18,7 @@ import unittest
...
@@ -18,7 +18,7 @@ import unittest
import
CommandTest
import
CommandTest
import
TestFacilities
import
TestFacilities
from
topydo.
lib
.ListContextCommand
import
ListContextCommand
from
topydo.
commands
.ListContextCommand
import
ListContextCommand
class
ListContextCommandTest
(
CommandTest
.
CommandTest
):
class
ListContextCommandTest
(
CommandTest
.
CommandTest
):
def
test_contexts1
(
self
):
def
test_contexts1
(
self
):
...
...
test/ListProjectCommandTest.py
View file @
4d054396
...
@@ -18,7 +18,7 @@ import unittest
...
@@ -18,7 +18,7 @@ import unittest
import
CommandTest
import
CommandTest
import
TestFacilities
import
TestFacilities
from
topydo.
lib
.ListProjectCommand
import
ListProjectCommand
from
topydo.
commands
.ListProjectCommand
import
ListProjectCommand
class
ListProjectCommandTest
(
CommandTest
.
CommandTest
):
class
ListProjectCommandTest
(
CommandTest
.
CommandTest
):
def
test_projects1
(
self
):
def
test_projects1
(
self
):
...
...
test/PostponeCommandTest.py
View file @
4d054396
...
@@ -18,7 +18,7 @@ from datetime import date, timedelta
...
@@ -18,7 +18,7 @@ from datetime import date, timedelta
import
unittest
import
unittest
import
CommandTest
import
CommandTest
from
topydo.
lib
.PostponeCommand
import
PostponeCommand
from
topydo.
commands
.PostponeCommand
import
PostponeCommand
from
topydo.lib.TodoList
import
TodoList
from
topydo.lib.TodoList
import
TodoList
class
PostponeCommandTest
(
CommandTest
.
CommandTest
):
class
PostponeCommandTest
(
CommandTest
.
CommandTest
):
...
...
test/PriorityCommandTest.py
View file @
4d054396
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
import
unittest
import
unittest
import
CommandTest
import
CommandTest
from
topydo.
lib
.PriorityCommand
import
PriorityCommand
from
topydo.
commands
.PriorityCommand
import
PriorityCommand
from
topydo.lib.TodoList
import
TodoList
from
topydo.lib.TodoList
import
TodoList
class
PriorityCommandTest
(
CommandTest
.
CommandTest
):
class
PriorityCommandTest
(
CommandTest
.
CommandTest
):
...
...
test/SortCommandTest.py
View file @
4d054396
...
@@ -18,7 +18,7 @@ import unittest
...
@@ -18,7 +18,7 @@ import unittest
import
CommandTest
import
CommandTest
from
topydo.lib.Config
import
config
from
topydo.lib.Config
import
config
from
topydo.
lib
.SortCommand
import
SortCommand
from
topydo.
commands
.SortCommand
import
SortCommand
import
TestFacilities
import
TestFacilities
class
SortCommandTest
(
CommandTest
.
CommandTest
):
class
SortCommandTest
(
CommandTest
.
CommandTest
):
...
...
test/TagCommandTest.py
View file @
4d054396
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
import
unittest
import
unittest
import
CommandTest
import
CommandTest
from
topydo.
lib
.TagCommand
import
TagCommand
from
topydo.
commands
.TagCommand
import
TagCommand
from
topydo.lib.TodoList
import
TodoList
from
topydo.lib.TodoList
import
TodoList
class
TagCommandTest
(
CommandTest
.
CommandTest
):
class
TagCommandTest
(
CommandTest
.
CommandTest
):
...
...
topydo/
lib/
Commands.py
→
topydo/Commands.py
View file @
4d054396
...
@@ -21,22 +21,22 @@ instance based on an argument list.
...
@@ -21,22 +21,22 @@ instance based on an argument list.
from
topydo.lib.Config
import
config
from
topydo.lib.Config
import
config
from
topydo.
lib
.AddCommand
import
AddCommand
from
topydo.
commands
.AddCommand
import
AddCommand
from
topydo.
lib
.AppendCommand
import
AppendCommand
from
topydo.
commands
.AppendCommand
import
AppendCommand
from
topydo.
lib
.DeleteCommand
import
DeleteCommand
from
topydo.
commands
.DeleteCommand
import
DeleteCommand
from
topydo.
lib
.DepCommand
import
DepCommand
from
topydo.
commands
.DepCommand
import
DepCommand
from
topydo.
lib
.DepriCommand
import
DepriCommand
from
topydo.
commands
.DepriCommand
import
DepriCommand
from
topydo.
lib
.DoCommand
import
DoCommand
from
topydo.
commands
.DoCommand
import
DoCommand
from
topydo.
lib
.EditCommand
import
EditCommand
from
topydo.
commands
.EditCommand
import
EditCommand
from
topydo.
lib
.ExitCommand
import
ExitCommand
from
topydo.
commands
.ExitCommand
import
ExitCommand
from
topydo.
lib
.IcalCommand
import
IcalCommand
from
topydo.
commands
.IcalCommand
import
IcalCommand
from
topydo.
lib
.ListCommand
import
ListCommand
from
topydo.
commands
.ListCommand
import
ListCommand
from
topydo.
lib
.ListContextCommand
import
ListContextCommand
from
topydo.
commands
.ListContextCommand
import
ListContextCommand
from
topydo.
lib
.ListProjectCommand
import
ListProjectCommand
from
topydo.
commands
.ListProjectCommand
import
ListProjectCommand
from
topydo.
lib
.PostponeCommand
import
PostponeCommand
from
topydo.
commands
.PostponeCommand
import
PostponeCommand
from
topydo.
lib
.PriorityCommand
import
PriorityCommand
from
topydo.
commands
.PriorityCommand
import
PriorityCommand
from
topydo.
lib
.SortCommand
import
SortCommand
from
topydo.
commands
.SortCommand
import
SortCommand
from
topydo.
lib
.TagCommand
import
TagCommand
from
topydo.
commands
.TagCommand
import
TagCommand
_SUBCOMMAND_MAP
=
{
_SUBCOMMAND_MAP
=
{
'add'
:
AddCommand
,
'add'
:
AddCommand
,
...
...
topydo/cli/CLI.py
View file @
4d054396
...
@@ -31,7 +31,7 @@ except ConfigError as config_error:
...
@@ -31,7 +31,7 @@ except ConfigError as config_error:
error
(
str
(
config_error
))
error
(
str
(
config_error
))
sys
.
exit
(
1
)
sys
.
exit
(
1
)
from
topydo.
lib.
Commands
import
get_subcommand
from
topydo.Commands
import
get_subcommand
from
topydo.lib
import
TodoList
from
topydo.lib
import
TodoList
class
CLIApplication
(
CLIApplicationBase
):
class
CLIApplication
(
CLIApplicationBase
):
...
...
topydo/cli/CLIApplicationBase.py
View file @
4d054396
...
@@ -85,8 +85,8 @@ except ConfigError as config_error:
...
@@ -85,8 +85,8 @@ except ConfigError as config_error:
error
(
str
(
config_error
))
error
(
str
(
config_error
))
sys
.
exit
(
1
)
sys
.
exit
(
1
)
from
topydo.
lib
.ArchiveCommand
import
ArchiveCommand
from
topydo.
commands
.ArchiveCommand
import
ArchiveCommand
from
topydo.
lib
.SortCommand
import
SortCommand
from
topydo.
commands
.SortCommand
import
SortCommand
from
topydo.lib
import
TodoFile
from
topydo.lib
import
TodoFile
from
topydo.lib
import
TodoList
from
topydo.lib
import
TodoList
from
topydo.lib
import
TodoListBase
from
topydo.lib
import
TodoListBase
...
...
topydo/cli/Prompt.py
View file @
4d054396
...
@@ -32,8 +32,8 @@ except ConfigError as config_error:
...
@@ -32,8 +32,8 @@ except ConfigError as config_error:
error
(
str
(
config_error
))
error
(
str
(
config_error
))
sys
.
exit
(
1
)
sys
.
exit
(
1
)
from
topydo.
lib.
Commands
import
get_subcommand
from
topydo.Commands
import
get_subcommand
from
topydo.
lib
.SortCommand
import
SortCommand
from
topydo.
commands
.SortCommand
import
SortCommand
from
topydo.lib
import
TodoFile
from
topydo.lib
import
TodoFile
from
topydo.lib
import
TodoList
from
topydo.lib
import
TodoList
...
...
topydo/
lib
/AddCommand.py
→
topydo/
commands
/AddCommand.py
View file @
4d054396
File moved
topydo/
lib
/AppendCommand.py
→
topydo/
commands
/AppendCommand.py
View file @
4d054396
File moved
topydo/
lib
/ArchiveCommand.py
→
topydo/
commands
/ArchiveCommand.py
View file @
4d054396
File moved
topydo/
lib
/DCommand.py
→
topydo/
commands
/DCommand.py
View file @
4d054396
File moved
topydo/
lib
/DeleteCommand.py
→
topydo/
commands
/DeleteCommand.py
View file @
4d054396
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
topydo.
lib
.DCommand
import
DCommand
from
topydo.
commands
.DCommand
import
DCommand
class
DeleteCommand
(
DCommand
):
class
DeleteCommand
(
DCommand
):
def
__init__
(
self
,
p_args
,
p_todolist
,
def
__init__
(
self
,
p_args
,
p_todolist
,
...
...
topydo/
lib
/DepCommand.py
→
topydo/
commands
/DepCommand.py
View file @
4d054396
File moved
topydo/
lib
/DepriCommand.py
→
topydo/
commands
/DepriCommand.py
View file @
4d054396
File moved
topydo/
lib
/DoCommand.py
→
topydo/
commands
/DoCommand.py
View file @
4d054396
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
from
datetime
import
date
from
datetime
import
date
from
topydo.
lib
.DCommand
import
DCommand
from
topydo.
commands
.DCommand
import
DCommand
from
topydo.lib.PrettyPrinter
import
PrettyPrinter
from
topydo.lib.PrettyPrinter
import
PrettyPrinter
from
topydo.lib.PrettyPrinterFilter
import
PrettyPrinterNumbers
from
topydo.lib.PrettyPrinterFilter
import
PrettyPrinterNumbers
from
topydo.lib.Recurrence
import
advance_recurring_todo
,
strict_advance_recurring_todo
,
NoRecurrenceException
from
topydo.lib.Recurrence
import
advance_recurring_todo
,
strict_advance_recurring_todo
,
NoRecurrenceException
...
...
topydo/
lib
/EditCommand.py
→
topydo/
commands
/EditCommand.py
View file @
4d054396
...
@@ -18,7 +18,7 @@ import os
...
@@ -18,7 +18,7 @@ import os
from
subprocess
import
call
,
check_call
,
CalledProcessError
from
subprocess
import
call
,
check_call
,
CalledProcessError
import
tempfile
import
tempfile
from
topydo.
lib
.ListCommand
import
ListCommand
from
topydo.
commands
.ListCommand
import
ListCommand
from
topydo.lib.MultiCommand
import
MultiCommand
from
topydo.lib.MultiCommand
import
MultiCommand
from
topydo.lib.Config
import
config
from
topydo.lib.Config
import
config
from
topydo.lib.Todo
import
Todo
from
topydo.lib.Todo
import
Todo
...
...
topydo/
lib
/ExitCommand.py
→
topydo/
commands
/ExitCommand.py
View file @
4d054396
File moved
topydo/
lib
/IcalCommand.py
→
topydo/
commands
/IcalCommand.py
View file @
4d054396
...
@@ -19,7 +19,7 @@ Implements a subcommand that outputs an iCalendar file.
...
@@ -19,7 +19,7 @@ Implements a subcommand that outputs an iCalendar file.
"""
"""
from
topydo.lib.IcalPrinter
import
IcalPrinter
from
topydo.lib.IcalPrinter
import
IcalPrinter
from
topydo.
lib
.ListCommand
import
ListCommand
from
topydo.
commands
.ListCommand
import
ListCommand
class
IcalCommand
(
ListCommand
):
class
IcalCommand
(
ListCommand
):
def
__init__
(
self
,
p_args
,
p_todolist
,
def
__init__
(
self
,
p_args
,
p_todolist
,
...
...
topydo/
lib
/ListCommand.py
→
topydo/
commands
/ListCommand.py
View file @
4d054396
File moved
topydo/
lib
/ListContextCommand.py
→
topydo/
commands
/ListContextCommand.py
View file @
4d054396
File moved
topydo/
lib
/ListProjectCommand.py
→
topydo/
commands
/ListProjectCommand.py
View file @
4d054396
File moved
topydo/
lib
/PostponeCommand.py
→
topydo/
commands
/PostponeCommand.py
View file @
4d054396
File moved
topydo/
lib
/PriorityCommand.py
→
topydo/
commands
/PriorityCommand.py
View file @
4d054396
File moved
topydo/
lib
/SortCommand.py
→
topydo/
commands
/SortCommand.py
View file @
4d054396
File moved
topydo/
lib
/TagCommand.py
→
topydo/
commands
/TagCommand.py
View file @
4d054396
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment