add plan CLI
This commit is contained in:
parent
582ea0f9de
commit
b32a4a454c
|
@ -44,5 +44,6 @@ private[api] final class Cli(bus: lila.common.Bus) extends lila.common.Cli {
|
|||
lila.studySearch.Env.current.cli.process orElse
|
||||
lila.coach.Env.current.cli.process orElse
|
||||
lila.evalCache.Env.current.cli.process orElse
|
||||
lila.plan.Env.current.cli.process orElse
|
||||
process
|
||||
}
|
||||
|
|
|
@ -61,6 +61,13 @@ final class Env(
|
|||
}
|
||||
|
||||
def webhook = webhookHandler.apply _
|
||||
|
||||
def cli = new lila.common.Cli {
|
||||
def process = {
|
||||
case "patron" :: "lifetime" :: user :: Nil =>
|
||||
lila.user.UserRepo named user flatMap { _ ?? api.setLifetime } inject "ok"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
object Env {
|
||||
|
|
Loading…
Reference in a new issue