Elmer v0.0.10 Mix.Tasks.Elmer.Gen.Port
Generates a Port.elm file
Summary
Functions
Creates a new Port file in your elm path.
Run with mix elmer.gen.port <module name> <args>
Args are in the format “portName:direction:params portNameN:direction:paramN”
- Direction is either inbound (Sub) or outbound (Cmd)
- Params are the types that are input to your Port
- port askDeleteConfirmation : ( Int, String ) -> Cmd msg | args would be askDeleteConfirmation:outboud:Int:String
- port getDeleteConfirmation : (Int -> msg) -> Sub msg | args would be getDeleteConfirmation:inbound:Int
- Currently does not add inbounds to subscriptions