Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (14 sloc) 572 Bytes

Executing Command Line Binaries

You may use the exec() method to execute any command line shell script. Just pass a normal string that will be evaluated by the shell of the Operating System you are on. Like CommandBox integration for example!

elixir( function( mix ){
	mix.exec( "box testbox run" );
} );

Attaching Watchers

You can also attach a watcher to the command execution. Let's say you want all the Tests to execute if there are any changes to them:

elixir( function( mix ){
	mix.exec( "box testbox run", "tests/**/*.cfc" );
} );