Add usage section to README

This commit is contained in:
Glenn Y. Rolland 2018-08-22 20:15:11 +02:00
parent 703f7fe43e
commit 6563e2f111
2 changed files with 31 additions and 2 deletions

View file

@ -10,6 +10,33 @@ Make sure you have Go installed, then type :
go install github.com/glenux/trello2mail-go/... go install github.com/glenux/trello2mail-go/...
It will install Trello2Mail binary in `$GOPATH/bin`
## Usage
Prepare your environment with the following variables
```
EMAIL_FROM: no-reply@example.com
EMAIL_TO: me@example.com
EMAIL_SUBJECT: "Daily mail for YYYYYY"
TRELLO_URL: https://trello.com/b/xxxxx/yyyy
TRELLO_TOKEN: xxxxxxxxxxxxxx
SMTP_HOSTNAME: smtp.example.com
SMTP_USERNAME: foobar@example.com
SMTP_PASSWORD: securefoobar
SMTP_PORT: 587
# SMTP_AUTH_TYPE accepts either "none", "plain" or "login"
SMTP_AUTH_TYPE: plain
# SMTP_SECURITY_TYPE accepts either "none", "tls" or "starttls"
SMTP_SECURITY_TYPE: tls
```
Then run the program:
$GOPATH/bin/trello2mail
## Contributing ## Contributing

View file

@ -12,6 +12,8 @@ services:
SMTP_USERNAME: foobar@example.com SMTP_USERNAME: foobar@example.com
SMTP_PASSWORD: securefoobar SMTP_PASSWORD: securefoobar
SMTP_PORT: 587 SMTP_PORT: 587
# SMTP_AUTH_TYPE accepts either "none", "plain" or "login"
SMTP_AUTH_TYPE: plain SMTP_AUTH_TYPE: plain
# SMTP_SECURITY_TYPE accepts either "none", "tls" or "starttls"
SMTP_SECURITY_TYPE: tls SMTP_SECURITY_TYPE: tls