nicored / gotickyourself Goto Github PK
View Code? Open in Web Editor NEWIntuitive CLI for tickspot and automate time logging
Home Page: http://gotickyourself.com
License: MIT License
Intuitive CLI for tickspot and automate time logging
Home Page: http://gotickyourself.com
License: MIT License
Just an idea, but any items on G Cal that involve other people can be automatically set to be used as meetings?
After logging some time I don't get any output or confirmation. Would be good to get something like:
Logged 2 hours against: Development
Daily summary (3h left):
2h development
1h tech debt
So I get:
As an admin, when I run gty ls
, it returns time entries for everyone I administrate.
I only want time for me or a flag to enable everyone.
Add a date range option so that we can just specify a date range and it uses the default task for every working day in that date range.
At the moment you need to specify a task id to set the default, which is different from when you create a log since you need the alias:
~ gty tasks default debt Tue 08 Aug 2017 09:34:04 AEST
2017/08/08 09:34:16 Task ID must be an integer. strconv.Atoi: parsing "debt": invalid syntax
! ~ rm -rf .gty/ Mon 07 Aug 2017 13:24:16 AEST
~ gty Mon 07 Aug 2017 13:24:18 AEST
Usage:
gty [command]
Available Commands:
help Help about any command
init Initialises gty.
log log new entries
ls List logs
projects Resets all settings
reset Resets all settings
roles Resets all settings
settings Shows all settings
sum Log summary
tasks List tasks
update Updates roles, projects and tasks list. This is done automatically on init, and before the first request of the day
Flags:
-h, --help help for gty
Use "gty [command] --help" for more information about a command.
~ gty help Mon 07 Aug 2017 13:24:21 AEST
Updating projects
2017/08/07 13:24:24 Could not load clients for update%!(EXTRA *json.SyntaxError=invalid character 'R' looking for beginning of value)
Semes to be creating the ~/.gty
directory when you run the first gty
command. Then if that directory exists it's trying to pull the projects every time you run the command.
If I remove ~/.gty
then run gty init
as the very first command, it all works fine.
steps to reproduce:
run gty log
twice. The second time will give you this error:
2017/09/13 15:47:41 An error occurred when creating the entry. Request errored and could not create new entry. {"errors":{"hours":["must be between 0 and 24."]}}
It should show a message saying that you have already logged your default hours for the day.
Since hours and minutes aren't in base 10, I can't track 1h 40m
as 1.4
, I have to do it as 1.6
, which isn't accurate or intuitive.
You only need the api key, so you should not store the username and psasword after fetching the api key.
Just give the user a feedback message that the time logging was succesull
Just like when typing your sudo password in bash, any passwords typed by the user should not be displayed.
I want to be able to log time to a day previously is the current week, that isn't yesterday
. I thought that just typing the day name would work, and it appears to, except it doesn't print out the summary:
$ gty log -d wednesday 0.1 pday Fri 18 Aug 2017 14:58:40 AEST
Logged successfully
(yes I loged 0.1 hours to a public holiday)
Except it actually logged this time to the current day. So I had to delete it from the web interface and then log it by specifying the date.
Would be good to be able to use natual language like:
Also for it to show the log summary:
$ gty log -d 2017-08-16 0.1 pday Fri 18 Aug 2017 15:00:35 AEST
Logged successfully
You've logged a total of 0.10 hours for 2017-08-16 (4.90 remaining)
==== New Entry ====
-> Task: Public Holiday
-> Time (hours): 0.10
-> Project: Administration & Overheads
-> Client: RedEye
Looking at the README, I run this:
gty sum 3 days ago
but what I actually need to run is:
gty sum 3 days
I normally have 2 things which I log every day, tech debt and dev work. Would be good to have them both set as default, so that gty log
will do both for me. Also I might want to auto log meeting time every day as well.
When I run gty ls
I get output like this:
~ gty ls 1 week 2088ms Mon 07 Aug 2017 13:35:43 AEST
2017-08-04 3.7 Administration & Overheads Culture and People 9936342
2017-07-31 1 CSM - DMS General Customer Success 9940060
2017-08-04 2.3 Road Map and Product Development - DMS Development 9936352
2017-08-03 2.7 Road Map and Product Development - DMS Development 9936352
2017-08-02 3 Road Map and Product Development - DMS Development 9936352
2017-07-31 1 Road Map and Product Development - DMS Development 9936352
2017-08-02 1 Road Map and Product Development - DMS Release and Review 9989054
2017-07-31 2 Road Map and Product Development - DMS Release and Review 9989054
2017-08-04 1.4 Road Map and Product Development - DMS Planning and Development Meetings 10009603
2017-08-04 3.5 Road Map and Product Development - DMS Technical Debt 10033034
2017-08-03 3.5 Road Map and Product Development - DMS Technical Debt 10033034
2017-08-02 2 Road Map and Product Development - DMS Technical Debt 10033034
2017-08-01 4 Road Map and Product Development - DMS Technical Debt 10033034
Which is pretty hard to decipher. Would be good to group it like:
Monday 2017-07-31
1 CSM - DMS General Customer Success 9940060
1 Road Map and Product Development - DMS Development 9936352
Tuesday 2017-08-01
4 Road Map and Product Development - DMS Technical Debt 10033034
As an admin user, when I run gty sum
it fails with the following message:
⋊> ~/P/wfm-web-app on tabulate-jobs ⨯ gty sum 14:24:59
2017/08/07 14:25:03 Could not determine time for
when our tick was changed, a bunch of projects were removed and new ones added. However gty update
only picked up the new added projects, and it still thought the old projects/tasks existed. I had to rm ~/.gty/projects.yml
then do gty update
again to make it work correctly.
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.