worktimer

command module
v0.0.0-...-6d9b50f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2018 License: MIT Imports: 7 Imported by: 0

README

これは何?

指定した日の Slack の投稿時刻の最初と最後を拾って来て表示するやつ

インストール

$ go get -u github.com/mugijiru/worktimer

初期設定

https://api.slack.com/custom-integrations/legacy-tokens からトークンを取得して 環境変数 SLACK_TOKEN に設定してください

使い方

worktimer [YYYY/MM/DD [YYYY/MM/DD]]

コマンドライン引数がない場合はその日の最初の投稿時間と最後の投稿時間を表示します。

第一引数に開始日、第二引数に終了日を指定できます(形式: YYYY/MM/DD)。 第二引数を省略した場合には、終了日は開始日と同一と扱われます。 日付を指定した場合には、指定日の最初の投稿時間と最後の投稿時間を表示します。

出力例

2018/07/11      09:54:52        20:10:00
2018/07/12      09:59:36        20:03:59
2018/07/13      09:59:58        20:23:18

License

MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL