mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-30 01:34:26 +02:00
sandbox commands working
This commit is contained in:
parent
a4169dc016
commit
2f49d2d191
3 changed files with 14 additions and 5 deletions
|
@ -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>] \
|
||||
");
|
||||
"));
|
||||
}]
|
||||
];
|
||||
};
|
||||
|
|
|
@ -35,6 +35,14 @@ p.commandLine {
|
|||
margin: 2px;
|
||||
}
|
||||
|
||||
p.commandResult {
|
||||
color: blue;
|
||||
}
|
||||
|
||||
p.commandError {
|
||||
color: red;
|
||||
}
|
||||
|
||||
span.arrows {
|
||||
color: greenyellow;
|
||||
font-weight: bold;
|
||||
|
|
|
@ -81,7 +81,7 @@ var CommandLineHistoryView = Backbone.View.extend({
|
|||
';
|
||||
|
||||
this.resultTemplate = ' \
|
||||
<p class="commandResult <%= className %>"> \
|
||||
<p class="commandLine <%= className %>"> \
|
||||
<%= result %> \
|
||||
</p> \
|
||||
';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue