ColdBox Elixir
v2.x
v2.x
  • Introduction
  • Overview
  • Changelog
  • Installation
  • Running Elixir
  • Configuration Options
  • Working With Stylesheets
  • Working With Scripts
  • Versioning Cache Busting
    • ColdBox Helper Methods
  • Mixing in tasks from ColdBox Modules
  • Copying Files & Directories
  • Deleting Files & Directories
  • Executing Command Line Binaries
  • Calling Gulp Tasks
  • Custom Watchers
  • BrowserSync
  • Vue.js Integration
  • Writing Elixir Extensions
Powered by GitBook
On this page
Edit on Git

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" );
} );
PreviousDeleting Files & DirectoriesNextCalling Gulp Tasks

Last updated 6 years ago