This commit is contained in:
Josh Deprez 2021-08-26 10:25:55 +10:00
parent 177ba91d51
commit 42aa119e7f

View file

@ -56,6 +56,9 @@ func (g *Game) REPL(src io.Reader, dst io.Writer, assets fs.FS) error {
g.Enable()
g.Show()
case "tree":
if len(tok) < 1 || len(tok) > 2 {
fmt.Println(dst, "Usage: tree [ID]")
}
var c interface{} = g
if len(tok) == 2 {
// subtree