sandbox commands working

This commit is contained in:
Peter Cottle 2012-09-10 13:29:34 -07:00
parent a4169dc016
commit 2f49d2d191
3 changed files with 14 additions and 5 deletions

View file

@ -47,11 +47,12 @@ Command.prototype.getSandboxCommands = function() {
"); ");
}], }],
[/^git$/, function() { [/^git$/, function() {
throw new CommandResult("\ throw new CommandResult(_.escape("\
Git Version PCOTTLE.1.0\ Git Version \n \
Usage:\ PCOTTLE.1.0 \
Usage: \n \
git <command> [<args>] \ git <command> [<args>] \
"); "));
}] }]
]; ];
}; };

View file

@ -35,6 +35,14 @@ p.commandLine {
margin: 2px; margin: 2px;
} }
p.commandResult {
color: blue;
}
p.commandError {
color: red;
}
span.arrows { span.arrows {
color: greenyellow; color: greenyellow;
font-weight: bold; font-weight: bold;

View file

@ -81,7 +81,7 @@ var CommandLineHistoryView = Backbone.View.extend({
'; ';
this.resultTemplate = ' \ this.resultTemplate = ' \
<p class="commandResult <%= className %>"> \ <p class="commandLine <%= className %>"> \
<%= result %> \ <%= result %> \
</p> \ </p> \
'; ';