func printInfo(info *tasks.Info, out io.Writer) error { p := printer.New(out) p.Printf("// %s", info.Domain) p.Println() info.PrintTo(p) return p.Error }
func newCursor(t *Term) *cursor { ret := new(cursor) ret.Term = t ret.stack = newStack() ret.Printer = printer.New(t.Log) return ret }
func (self *Term) T(t Task) (*Branch, error) { ret, e := newCursor(self).T(t) self.done++ if e == nil { p := printer.New(self.Out) t.PrintTo(p) } return ret, e }