equal
deleted
inserted
replaced
67 private val table: Map[String, T] = |
67 private val table: Map[String, T] = |
68 Map( |
68 Map( |
69 "help" -> { case (_, ()) => table.keySet.toList.sorted }, |
69 "help" -> { case (_, ()) => table.keySet.toList.sorted }, |
70 "echo" -> { case (_, t) => t }, |
70 "echo" -> { case (_, t) => t }, |
71 "shutdown" -> { case (context, ()) => context.server.shutdown() }, |
71 "shutdown" -> { case (context, ()) => context.server.shutdown() }, |
72 "cancel" -> { case (context, JSON.Value.UUID(id)) => context.cancel_task(id) }, |
72 "cancel" -> |
|
73 { case (context, Server_Commands.Cancel(args)) => context.cancel_task(args.task) }, |
73 "session_build" -> |
74 "session_build" -> |
74 { case (context, Server_Commands.Session_Build(args)) => |
75 { case (context, Server_Commands.Session_Build(args)) => |
75 context.make_task(task => |
76 context.make_task(task => |
76 Server_Commands.Session_Build.command(args, progress = task.progress)._1) |
77 Server_Commands.Session_Build.command(args, progress = task.progress)._1) |
77 }, |
78 }, |