An open API service indexing awesome lists of open source software.

https://github.com/bkeepers/hubot-commands

experiment with building a command interface into Hubot
https://github.com/bkeepers/hubot-commands

Last synced: about 2 months ago
JSON representation

experiment with building a command interface into Hubot

Awesome Lists containing this project

README

          

# Hubot Commands

This is a prototype for the Hubot [commands proposal](https://github.com/hubotio/evolution/pull/2).

```js
module.exports = robot => {
const cli = require('hubot-commands')(robot)

cli.command('cowsay ', (res, words) => {
res.send(require('cowsay').say(words.join(' ')))
})
.description('make the cow say words')
.alias('c')
}
```

TODO:

- [ ] explicit args
- [x] required: `deploy `
- [x] optional: `deploy [environment]`
- [ ] Variadic: `deploy [hosts...]`
- [ ] coercion & regex for advanced syntax
- [ ] default values
- [ ] subcommands: `deploy list`
- [x] alias
- [x] automated help
- [ ] listener metadata