Commit graph

69 commits

Author SHA1 Message Date
Darko Poljak
6245a3c015 Introduce unit tests (init, main, listprojects, tracker). 2016-04-10 21:01:54 +02:00
Nico Schottelius
2cf503abac Merge pull request #17 from darko-poljak/summary-option
Summary option
2016-04-08 08:52:03 +02:00
Darko Poljak
0c90b7b2e7 Update .gitignore 2016-04-08 08:47:39 +02:00
Darko Poljak
f5123d3328 Code improvements. 2016-04-07 22:22:56 +02:00
Darko Poljak
4663003b69 Remove unnecessary code. 2016-04-07 18:26:34 +02:00
Darko Poljak
3ea214783c Add summary option. 2016-04-07 12:32:39 +02:00
Nico Schottelius
bd0c3cc13c Merge pull request #16 from darko-poljak/no-args-err
Fix error when called without args.
2016-04-03 23:51:39 +02:00
Darko Poljak
a5249a5f02 Fix error when called without args. 2016-04-03 21:58:19 +02:00
Nico Schottelius
53170402fd Merge pull request #15 from darko-poljak/report-project-basename
Report project name as file path basename.
2016-04-03 20:34:14 +02:00
Darko Poljak
525e8fbb93 Report project name as file path basename. 2016-04-02 21:18:42 +02:00
Nico Schottelius
a6d48be4aa Merge pull request #14 from darko-poljak/report-globbing
Add report project name globbing.
2016-03-25 10:12:45 +01:00
Darko Poljak
ff1ccba2fa Add report project name globbing. 2016-03-25 08:47:06 +01:00
Nico Schottelius
ac15255ad7 Merge pull request #13 from greendeath/bug/man_ctt_typo
Typo fix in ctt.text
2016-03-10 16:16:32 +01:00
c98b9231d1 Typo fix in ctt.text
ctt track also uses --sd and --ed not -s or -e
2015-09-25 16:23:44 +02:00
Nico Schottelius
bf0e47cef8 fix listprojects
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
2015-04-12 01:04:38 +09:00
Nico Schottelius
d0cf603675 catch invalid time entries
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2014-07-01 17:56:20 +02:00
Davide Riccardo Caliendo
4de600713a improved bash completion script
* fixed a bug with listprojects command name
* only long option names are expanded
* now various options depends on the given command, and are not
  expanded by default (start with -* and tab to list them)
* project names are only expanded when a suitable command is given
  before, and they are not expanded more than one time
2013-11-27 21:31:20 +01:00
Nico Schottelius
464d90948a More Changes for 1.0
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-10-17 13:06:40 +09:00
Davide Riccardo Caliendo
cd29a8574f added bash completion script 2013-10-17 13:03:58 +09:00
Davide Riccardo Caliendo
4e0edfb3fc added license and manifest files 2013-10-17 13:03:58 +09:00
Davide Riccardo Caliendo
7619756360 correct license indication in setup.py 2013-10-17 13:03:58 +09:00
Nico Schottelius
c91e159836 remove sys.path from scripts/ctt - not needed anymore
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-30 11:50:22 +02:00
Nico Schottelius
f0c0e5ac7b ++changes(1.0)
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-30 11:37:39 +02:00
Nico Schottelius
d49e95baac use wrapper in bin/ so script/ctt can run in sane PYTHONPATH
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-30 11:35:55 +02:00
Nico Schottelius
5a9983f7dd rephrase website
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-30 11:14:40 +02:00
Nico Schottelius
76283a1240 ++changes(1.0)
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-30 11:11:06 +02:00
oz123
654153eb9c fix for crash in listprojects
[36] ozn@deboz:~/software/ctt  [master]  $ ctt listprojects
Traceback (most recent call last):
  File "/usr/local/bin/ctt", line 5, in <module>
    pkg_resources.run_script('ctt==0.9', 'ctt')
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 507, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 1273, in run_script
    exec(compile(open(script_filename).read(), script_filename, 'exec'), namespace, namespace)
  File "/usr/local/lib/python3.3/dist-packages/ctt-0.9-py3.3.egg/EGG-INFO/scripts/ctt", line 119, in <module>
    parse_argv(sys.argv[1:], ctt.VERSION)
  File "/usr/local/lib/python3.3/dist-packages/ctt-0.9-py3.3.egg/EGG-INFO/scripts/ctt", line 95, in parse_argv
    args.func(args)
  File "/usr/local/lib/python3.3/dist-packages/ctt-0.9-py3.3.egg/lib/ctt/listprojects.py", line 33, in commandline
    cls.print_projects()
TypeError: print_projects() takes 0 positional arguments but 1 was given
2013-08-30 10:06:49 +02:00
Nico Schottelius
a595e2af94 ++changes
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-29 13:49:56 +02:00
oz123
cd6af4d0fd add installer 2013-08-29 13:48:18 +02:00
oz123
0d27fb60cb add author information to __init__.py 2013-08-29 13:48:02 +02:00
Nico Schottelius
2ac0d937b1 list times for all projects
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-08-21 12:11:46 +02:00
Nico Schottelius
2de8525bab use project and report summary only once
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-07-24 18:56:56 +02:00
Nico Schottelius
29fbda012f initial support for listing tracked time for all projects
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-07-24 16:35:47 +02:00
Nico Schottelius
138e1075f9 work around python 3.3 argument parser bug
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-08 22:53:09 +02:00
Nico Schottelius
5f0155b968 +push
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-04-29 17:12:13 +02:00
Nico Schottelius
1cadbacaab +webpub
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-04-29 17:06:50 +02:00
Nico Schottelius
09a7654f35 +example usage
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-04-29 17:03:44 +02:00
Nico Schottelius
dbcecf9970 use a dict to have keyword access
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-04-29 16:38:21 +02:00
Nico Schottelius
7f904fa702 ++changes
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-04-29 16:12:20 +02:00
Nico Schottelius
e6e1ffbbf8 update manpage, update parameter descriptions
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-04-29 14:27:19 +02:00
Nico Schottelius
2f2f774e8d changes for 0.9
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-04-29 10:55:32 +02:00
Nico Schottelius
7b83d22a08 add manpage
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-04-29 10:53:24 +02:00
Nico Schottelius
ab362be637 support -e/-i & changelog entry
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-04-27 22:55:02 +02:00
Nico Schottelius
5003b935f4 remove obsolte report parts
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-04-04 23:23:40 +02:00
Nico Schottelius
951597288b +website
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-04-04 12:57:56 +02:00
Nico Schottelius
13373c4f60 support varying output modifiers for report
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-04-04 00:05:41 +02:00
Nico Schottelius
875aeb4f03 begin to do more clever default date selection
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-12-03 18:11:29 +01:00
Nico Schottelius
9b943ebd3d add support for listprojects
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-27 13:05:18 +01:00
Nico Schottelius
92c51d9dc0 update version string
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-01 10:39:32 +01:00
Nico Schottelius
4f135916e3 +makefile
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-10-31 22:54:11 +01:00