Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated the README with bird fly info

  • Loading branch information...
commit 128a5bf4cf46b6caf4a6cb083270c0a515778738 1 parent ea10735
@moonmaster9000 authored
Showing with 13 additions and 3 deletions.
  1. +13 −3 README.markdown
View
16 README.markdown
@@ -14,6 +14,17 @@ bells and whistles: lazy evaluation, first-class functions, currying, polymorphi
Note: make sure $HOME/.cabal/bin is in your PATH.
+## Checkout the bird command
+
+ λ bird
+ Usage: bird action [options]
+
+ Actions:
+ hatch [name] -> create a new Bird app, takes the name as an argument, for example `bird hatch StarWars`
+ nest -> compile your Bird app
+ fly [port] -> expose your Bird app to the world (port 3000 by default)
+
+
## Create an app
λ bird hatch StarWars
@@ -52,9 +63,8 @@ Note: make sure $HOME/.cabal/bin is in your PATH.
name <- param "name"
teacher <- param "teacher"
case teacher of
- Just "Yoda" -> body "The force is strong with this one!" >> status 201
- _ -> body "Sorry. The force is not with this one." >> status 400
-
+ Just "Yoda" -> body "The force is strong with this one!" >> status 201
+ _ -> body "Weak the force is with this one." >> status 400
get ("force":xs) = do
body $ "May the force be with you " ++ (join ", " xs) ++ "!"
Please sign in to comment.
Something went wrong with that request. Please try again.