wycomco / kimai-cli Goto Github PK
View Code? Open in Web Editor NEWCLI for Kimai
License: MIT License
CLI for Kimai
License: MIT License
In case the connection fail a bunch of errors is raised. It would be preferrably if a short "Connection to host 'my.kimai.host' failed.'"
See attached file for error messages.
kimai_cli_errors.txt
Right now to get the currently running time we fetch all entries and check if the first one has an end time of 0
. This is not very reliable however, since there might have been records scheduled that have a later start time than the currently running record. This would cause the cli to think that there is no currently running entry.
It would be nice if we could display the currently running record in the shell prompt. This would mean not having to use kimai record get-current
all the time.
When trying to add a comment to a currently running record, kimai-cli crashes with an exception after saving the comment with vi.
ecto-6:kimai-cli choules$ kimai record get-current
+-------+--------------+------------+------------+------------+-----------+---------+-----------+
| Id | Start Time | End Time | Duration | Customer | Project | Task | Comment |
+=======+==============+============+============+============+===========+=========+===========+
| 88403 | 10:30:59 | - | 0:01 | wycomco | Internes | Akquise | |
+-------+--------------+------------+------------+------------+-----------+---------+-----------+
ecto-6:kimai-cli choules$ kimai record comment
Id: 88403
Traceback (most recent call last):
File "/usr/local/bin/kimai", line 11, in <module>
load_entry_point('kimai-cli==0.6.2', 'console_scripts', 'kimai')()
File "/usr/local/Cellar/kimai-cli/0.6.2/libexec/lib/python3.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/Cellar/kimai-cli/0.6.2/libexec/lib/python3.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/Cellar/kimai-cli/0.6.2/libexec/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/Cellar/kimai-cli/0.6.2/libexec/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/Cellar/kimai-cli/0.6.2/libexec/lib/python3.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/Cellar/kimai-cli/0.6.2/libexec/lib/python3.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/Cellar/kimai-cli/0.6.2/libexec/lib/python3.7/site-packages/kimai/cli.py", line 481, in comment_on_record
kimai.comment_on_record(id, comment)
File "/usr/local/Cellar/kimai-cli/0.6.2/libexec/lib/python3.7/site-packages/kimai/kimai.py", line 309, in comment_on_record
return edit_record(record_id, comment=comment)
File "/usr/local/Cellar/kimai-cli/0.6.2/libexec/lib/python3.7/site-packages/kimai/kimai.py", line 290, in edit_record
'end': end.isoformat(),
AttributeError: 'NoneType' object has no attribute 'isoformat'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.