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.Enable()
g.Show() g.Show()
case "tree": case "tree":
if len(tok) < 1 || len(tok) > 2 {
fmt.Println(dst, "Usage: tree [ID]")
}
var c interface{} = g var c interface{} = g
if len(tok) == 2 { if len(tok) == 2 {
// subtree // subtree