utegsk / Clocklify

CLI for tracking time in Clockify
2 stars 0 forks source link

Ability to add batch of logs #1

Closed vikiival closed 4 years ago

vikiival commented 4 years ago

I would like to propose

uteg multiple logs.json

where logs.json could look like :

[
  {
    "date": "2020-07-23",
    "from": "09:00",
    "to": "17:00",
    "note": "Working on something important"
  },
  {
    "date": "2020-07-24",
    "from": "10:00",
    "to": "14:00",
    "note": "Quick fixes of cool features"
  }
]

Side note: JS Date can work with given date format

console.log(new Date('2020-07-23'));
> Thu Jul 23 2020 02:00:00 GMT+0200 (CEST)
AdamH4 commented 4 years ago

Done! uteg log path_to_file will read array of days and send them to clockify with or without note

vikiival commented 4 years ago

I tried it. It's perfect ❤️ thanks