#hours #command-line #goal #tracking #monthly #tracked #service

app my-hours

命令行应用程序,用于合并跟踪服务中的跟踪小时数,并提供一种简单的方法来查看是否达到月度目标。

3 个版本

0.1.3 2023 年 4 月 2 日
0.1.2 2023 年 3 月 22 日
0.1.1 2023 年 3 月 22 日

#4#tracked

每月 31 次下载

MIT 许可证

45KB
1K SLoC

我的小时

build & test codecov

项目的目标是创建一个命令行应用程序,用于合并跟踪服务中的跟踪小时数,并提供一种简单的方法来查看是否达到月度目标。

安装

cargo install my-hours

然后您可以查看帮助,以查看所有可用的命令

my-hours --help

用法

在构建并设置别名后

$ my-hours --help
Usage: my-hours [OPTIONS] [COMMAND]

Commands:
  integrations  Manage integrations
  refresh       Refresh hours through integrations
  info          Show some basic info
  help          Print this message or the help of the given subcommand(s)

Options:
      --refresh  Refresh hours from integrations before printing them
  -h, --help     Print help information

使用 Toggl 的用法

将集成设置到 Toggl

$ my-hours integrations setup toggl
Toggl API key:
deadbeefe1e7e59b53084173c2685f12
New toggle configuration saved!
$ my-hours integrations list
Enabled integrations:

Toggl, workspaces: Hours's workspace

设置目标小时数

$ my-hours
Updated monthly hours from integrations
What is your target daily hours for Website?
8
What is your target weekly hours for Website?
40
What is your target monthly hours for Website?
160

Updated monthly hours from integrations

 Project                   | Today | Current week / Daily AVG | Current month / Daily AVG | Target (day / week / month)
========================================================================================================================
 Test Client / Website     |       |  25h  0m /   8h 20m      |  25h  0m /   8h 20m       | 8h / 40h / 160h
---------------------------+-------+--------------------------+---------------------------+-----------------------------
 Total                     |       |  25h  0m /   8h 20m      |  25h  0m /   8h 20m       |

从现在开始,您可以通过运行 my-hours 来查看状态。目标可以在设置中更新,请参阅 my-hours info

依赖关系

~9–25MB
~334K SLoC