Permalink
Browse files

I had mistakenly changed the 'update' keyword to 'upgrade'

  • Loading branch information...
mads-hartmann committed Jan 30, 2012
1 parent 7fbe40c commit 06902672ec6c6dc5eb91645e72f1a44ca0b5514d
Showing with 3 additions and 3 deletions.
  1. +3 −3 lifty-plugin/src/main/scala/Lifty.scala
@@ -31,7 +31,7 @@ object Lifty extends Plugin {
case ("templates", x :: Nil) => LiftyEngine.templates(x)
case ("learn", x :: y :: Nil) => LiftyEngine.learn(x,y)
case ("delete", x :: Nil) => LiftyEngine.delete(x)
case ("upgrade", x :: Nil) => LiftyEngine.upgrade(x)
case ("update", x :: Nil) => LiftyEngine.upgrade(x)
case ("recipes", Nil) => LiftyEngine.recipes()
case ("help", Nil) => LiftyEngine.help()
}).fold(
@@ -50,7 +50,7 @@ object Lifty extends Plugin {
def listTuple(t: (String,String)): List[String] = List(t._1,t._2)
// data
def keywords = List("create", "templates", "learn", "delete", "upgrade", "recipes", "help")
def keywords = List("create", "templates", "learn", "delete", "update", "recipes", "help")
def recipes: List[String] = Storage.allRecipes.unsafePerformIO map (_.name)
def templates: Map[String,Validation[Error,List[String]]] =
(recipes map ( r => (r,Storage.templateNames(r).unsafePerformIO))).toMap
@@ -86,7 +86,7 @@ object Lifty extends Plugin {
case "templates" => Space ~> templatesParser map { p => (cmd, List(p)) }
case "learn" => Space ~> learnParser map { p => (cmd, listTuple(p)) }
case "delete" => Space ~> deleteParser map { p => (cmd, List(p)) }
case "upgrade" => Space ~> upgradeParser map { p => (cmd, List(p)) }
case "update" => Space ~> upgradeParser map { p => (cmd, List(p)) }
case _ => success { (cmd, Nil) }
}}
}

0 comments on commit 0690267

Please sign in to comment.