jxxcarlson/elm-review-codeinstaller/12.0.1

NOTE: the latest version is 13.0.0

Install.InitializerCmd

Consider a function whose return value is of the form ( _, Cmd.none ). Suppose given a list of commands, e.g. [foo, bar]. The function makeRule described below replaces Cmd.none by Cmd.batch [ foo, bar ].

makeRule : String -> String -> List String -> Rule

Consider a function whose return value is of the form ( _, Cmd.none ). Suppose given a list of commands, e.g. [foo, bar]. The function makeRule creates a rule that replaces Cmd.none by Cmd.batch [ foo, bar ]. For example, the rule

Install.InitializerCmd.makeRule "A.B" "init" [ "foo", "bar" ]

results in the following fix for function A.B.init:

Cmd.none -> (Cmd.batch [ foo, bar ])