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() {
throw new CommandResult("\
Git Version PCOTTLE.1.0\
Usage:\
throw new CommandResult(_.escape("\
Git Version \n \
PCOTTLE.1.0 \
Usage: \n \
git <command> [<args>] \
");
"));
}]
];
};

View file

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

View file

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