Skip to content

Instantly share code, notes, and snippets.

@ryanjduffy
Last active December 10, 2015 04:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanjduffy/4384999 to your computer and use it in GitHub Desktop.
Save ryanjduffy/4384999 to your computer and use it in GitHub Desktop.
enyo.kind({
name:"ex.RemoteEcho",
kind:"cli.Command",
command:"recho",
commandHandler:function(source, command) {
this.doCommandResponse({response:[{content:"You said, \"" + command.argList.join(" ") + "\""}]});
}
});
enyo.kind({
name:"ex.Reverse",
kind:"cli.Command",
command:"reverse",
commandHandler:function(source, command) {
this.doCommandResponse({response:[{content:command.argList.reverse().join(" ")}]});
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment