Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
package com.example.app | |
import org.scalatra._ | |
import servlet.{SizeConstraintExceededException, FileUploadSupport} | |
import scalate.ScalateSupport | |
import java.io.ByteArrayInputStream | |
import org.apache.poi.ss.usermodel.WorkbookFactory | |
import org.apache.poi.ss.usermodel.Cell | |
import org.apache.poi.ss.usermodel.DataFormatter | |
import org.apache.poi.ss.usermodel.DateUtil |
scala> case class Auth(u: String) | |
defined class Auth | |
scala> val auth = headerOption("Auth").withDefault("anon").as[Auth].mapOutput { a => | |
| if (a.u == "foo") Ok(a) else Unauthorized(new Exception("wrong credentials")) | |
| } | |
scala> val e = get("foo" :: auth).map(_.u) | |
e: io.finch.Endpoint[String] = GET /foo/header(Auth) |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |