Last active
March 26, 2019 12:48
-
-
Save zindel/21e3827d322e90fab051ab3f2d3c34b2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let runScriptCli = (cmd, proj: Project.t) => { | |
open RunAsync.Syntax; | |
let%bind fetched = Project.fetched(proj); | |
let script = Cmd.getTool(cmd); | |
switch (Scripts.find(script, proj.scripts)) { | |
| Some(script) => runScript(script, Cmd.getArgs(cmd), proj) | |
| None => errorf("Script '%s' not found", script) | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment