An open API service indexing awesome lists of open source software.

https://github.com/l-lin/trello-daily-logs

Track daily activities from Trello cards in a single list
https://github.com/l-lin/trello-daily-logs

golang trello

Last synced: 3 months ago
JSON representation

Track daily activities from Trello cards in a single list

Awesome Lists containing this project

README

        

# trello-daily-logs

[![GoDoc](https://godoc.org/l-lin/trello-daily-logs?status.svg)](https://godoc.org/l-lin/trello-daily-logs)

I want to track what I did during the day, and as I'm using Trello to manage my daily tasks, I can
use the [Trello APIs](https://developers.trello.com/docs/api-introduction) to fetch the card
information, especially the ones from my `DONE` list.

This CLI is used to:

- get the Trello card information
- append/prepend today's content into a file `/path/to/daily-logs/2020/02.md`:

```md
## Sunday 09

**ABANDONED**

    api@spec: write OpenAPI specifications

**PERSO**

    career@interview: find good questions for interview

    career: find good path

**WORK**

api@gravitee: install in prod environment

# Gravitee in prod
## Getting started

- get up from bed
- brush teeth

    api@spec: write OpenAPI specifications

---

UNFINISHED

**PERSO**

    shopping: buy milk

**WORK**

    projectA@taskA: study solutions

    projectB@taskB: implement solution

```

## Getting started

```bash
# Build
make compile
```

## Usage

```bash
# Run binary
./bin/trello-daily-logs -h
# Or directly using go
go run .
# Install
go install
# Don't forget to run at least once to initialize the config file
trello-daily-logs
```

Add to the crontab:

```bash
25 18 * * 1-5 /home/llin/.asdf/shims/trello-daily-logs -f file 1> /dev/null 2> /tmp/trello-daily-logs.log
26 18 * * 1-5 /home/llin/perso/trello-daily-logs/commit.sh 1> /dev/null 2> /tmp/trello-daily-logs.commit.log
```