Add doc
This commit is contained in:
parent
4bee0ba51d
commit
8cea2f2f9d
1 changed files with 23 additions and 2 deletions
|
@ -1,10 +1,31 @@
|
||||||
// create taskell configuration
|
// create taskell configuration
|
||||||
// run taskell and read content
|
// run taskell and read content ?
|
||||||
|
// use https://github.com/adlio/trello ?
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
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)
|
||||||
|
}
|
||||||
|
|
||||||
func CreateTaskell() {
|
func CreateTaskell() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func RunTaskell() {
|
func RunTaskell(boardUrl string) {
|
||||||
|
cmd := fmt.Sprintf("taskell -t %s -", boardUrl)
|
||||||
|
markdown := strings.TrimSpace(runcmd(cmd))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue