ok awesome third levle

This commit is contained in:
Peter Cottle 2013-03-09 19:26:22 -08:00
parent 2ca8d2a7bb
commit f49937c935
2 changed files with 18 additions and 0 deletions

View file

@ -244,6 +244,11 @@ exports.strings = {
'zh_CN': '语言重置为默认的 {locale}'
},
///////////////////////////////////////////////////////////////////////////
'show-command': {
'__desc__': 'command output from "show"',
'en_US': 'Please one of the following commands for more info:'
},
///////////////////////////////////////////////////////////////////////////
'cd-command': {
'__desc__': 'dummy command output for the command in the key',
'en_US': 'Directory changed to "/directories/dont/matter/in/this/demo"',

View file

@ -32,6 +32,19 @@ var instantCommands = [
)
});
}],
[/^show$/, function(bits) {
lines = [
intl.str('show-command'),
'show commands',
'show solution',
'show goal'
];
throw new CommandResult({
msg: lines.join('\n')
});
}],
[/^locale (\w+)$/, function(bits) {
constants.GLOBAL.locale = bits[1];