mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-30 09:44: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() {
|
[/^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>] \
|
||||||
");
|
"));
|
||||||
}]
|
}]
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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> \
|
||||||
';
|
';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue