oHirokiKumamoto / hack-spirit

Make TeamSpirit hackable
18 stars 6 forks source link

worktime command #8

Closed oHirokiKumamoto closed 8 years ago

oHirokiKumamoto commented 8 years ago

Implement #6

You can input worktime with relative d% or absolutehh:mm format. Note: rest time are added 間接業務 project. That behavior is same as team spirit.

$ hack-spirit worktime --help
  Usage: worktime [options]

  Record work time

  Options:

    -h, --help             output usage information
    -d, --date [YYYYMMDD]  What day you want to record your worktime .(default: today)
$hack-spirit worktime
Total time is 7:18
Current your projects:
project1: 0:00
project2: 0:00
間接業務:
Enter your work time of each project.
project1: 1:00
project2: 1:00
間接業務: 1:00
4:18
----------------
project1 1:00
project2:2ndMission 1:00
間接業務 5:18
----------------
Is it OK?
Please input yes or no: yes
Succeeded in recording your worktimes!!!
oHirokiKumamoto commented 8 years ago

ありがたい名言