mirror of
https://github.com/gnh1201/caterpillar.git
synced 2024-11-26 15:31:45 +00:00
Update console.html
This commit is contained in:
parent
bb997f6116
commit
af53d52df0
15
console.html
15
console.html
|
@ -50,6 +50,11 @@
|
|||
jQuery(function($, undefined) {
|
||||
$('#console').terminal({
|
||||
set: function(k, v) {
|
||||
if (k == "env") {
|
||||
this.echo("env is the reserved word");
|
||||
return;
|
||||
}
|
||||
|
||||
env[k] = v;
|
||||
|
||||
if (k == "method") {
|
||||
|
@ -57,8 +62,14 @@
|
|||
}
|
||||
},
|
||||
show: function(k) {
|
||||
if (k == "target") {
|
||||
this.echo(env[k]);
|
||||
var v = env[k];
|
||||
|
||||
if (typeof env[k] === "object") {
|
||||
this.echo(JSON.stringify(v));
|
||||
} else if (k == "env") {
|
||||
this.echo(JSON.stringify(env));
|
||||
} else {
|
||||
this.echo(v);
|
||||
}
|
||||
},
|
||||
do: function(...args) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user