Skip to content

Commit

Permalink
readme: add one-liner
Browse files Browse the repository at this point in the history
  • Loading branch information
maelvls committed Jan 11, 2022
1 parent d9536f0 commit d10121a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -46,6 +46,13 @@ clockidup login

![](https://user-images.githubusercontent.com/2195781/123278842-95d23200-d507-11eb-8d31-7678575e8d37.gif)

One-liner to submit your standup Slack message (to get a token, open http://slackcat.chat/configure):

```sh
TOKEN=xoxp-173d646577f-5586534d56b8a-8c7fa2a0a818b-7af170367a53e9ee3e29465efe807a9e
clockidup --billable today | tee /dev/stderr >/tmp/standup && curl -s -X POST "https://slack.com/api/chat.postMessage" -d "token=$TOKEN" -d as_user=true -d channel=$(curl -s -X POST "https://slack.com/api/conversations.list" -d "token=$TOKEN" -d types=im,public_channel,private_channel -d limit=1000 | jq '.channels[] | select(.name == "stand-ups") | .id' -r) --data-urlencode text="$(echo '```'; cat /tmp/standup; echo '```')" | jq
```

If you are using multiple Clockify workspaces, you can also switch between
workspaces using `clockidup select`

Expand Down

0 comments on commit d10121a

Please sign in to comment.