src/Pure/Tools/server.scala
changeset 67920 c3c74310154e
parent 67913 d58fa3ed236f
child 67931 f7917c15b566
equal deleted inserted replaced
67919:dd90faed43b2 67920:c3c74310154e
    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           },