musala/cmd/trello2mail/import.go

32 lines
505 B
Go
Raw Normal View History

2018-08-21 10:50:30 +02:00
// create taskell configuration
2018-08-21 10:57:59 +02:00
// run taskell and read content ?
// use https://github.com/adlio/trello ?
2018-08-21 10:50:30 +02:00
package main
2018-08-21 10:57:59 +02:00
import (
"fmt"
"os/exec"
"strings"
)
func runcmd(command string) string {
shell := "/bin/sh"
flag := "-c"
out, err := exec.Command(shell, flag, command).Output()
if err != nil {
panic(err)
}
return string(out)
}
2018-08-21 10:50:30 +02:00
func CreateTaskell() {
}
2018-08-21 10:57:59 +02:00
func RunTaskell(boardUrl string) {
cmd := fmt.Sprintf("taskell -t %s -", boardUrl)
markdown := strings.TrimSpace(runcmd(cmd))
2018-08-21 10:50:30 +02:00
}