kritzcreek / pscid

A lightweight, fast and unintrusive PureScript file-watcher
GNU Lesser General Public License v3.0
133 stars 16 forks source link

Fixed pscid --include behaviour. #42

Closed jamieyung closed 6 years ago

jamieyung commented 6 years ago

Added an ADT (CLICommand) to represent the possible command types: NamedScriptSpecificCommand ("pscid:" script in package.json), NamedScriptCommand (script in package.json), and PulpCommand (eg. "pulp build").

Only the PulpCommand data constructor has an associated array of include paths; the reasoning is described in a comment (Options.purs:93).

These commands are transformed into the appropriate string command via a Show instance.

kritzcreek commented 6 years ago

Fixes #41

kritzcreek commented 6 years ago

Thanks