GithubHelp home page GithubHelp logo

nicored / gotickyourself Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 2.0 36 KB

Intuitive CLI for tickspot and automate time logging

Home Page: http://gotickyourself.com

License: MIT License

Go 100.00%
tickspot golang cli log api tick

gotickyourself's People

Contributors

nicored avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

slimlime ermyril

gotickyourself's Issues

Give confirmation and extra info when logging

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:

  • confirmation the log happened
  • a list of time I've logged today
  • how many hours I have left to log for today

Ability to use aliases to set default tasks

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

Error if `gty init` is not the very first command you run

 !  ~  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.

Log time using `1h 30m` format

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.

Logging time to `wednesday` actually logs to today

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:

  • wednesday
  • last wednesday
  • next wednesday 😉

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

Ability to set multiple default tasks

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.

Format the output for `gty ls`

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

sum fails

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

update doesn't remove projects

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.