execFirstRule function
Only executes the first rule of a "Bakefile".
Implementation
void execFirstRule(String fileContents) {
List<String> fileC = fileContents.split('\n');
for (int i = 0; i < fileC.length; i++) {
if (i == 0) {
String args = fileC[i];
List<String> ruleTup = getMatches(args);
if (ruleTup.length == 2) {
try {
runCommand(ruleTup[1]);
} on ProcessException catch (e) {
printColoredString('$e', 'red');
}
} else {}
} else {}
}
}