Lots of structure

This commit is contained in:
Ian Gulliver
2021-09-06 18:19:04 +00:00
parent 45b805d290
commit f89ce23244
3 changed files with 186 additions and 27 deletions

25
main.go
View File

@@ -1,7 +1,30 @@
package main
import "fmt"
import "github.com/firestuff/asana-rules/asana"
func main() {
asana.Fetch()
a := asana.NewClientFromEnv()
/*
me, err := a.Me()
if err != nil {
panic(err)
}
*/
wrk, err := a.Workspace()
if err != nil {
panic(err)
}
prjs, err := a.Projects(wrk.GID)
if err != nil {
panic(err)
}
for _, prj := range prjs {
fmt.Printf("%#v\n", prj)
}
}