hubot-alias
hubot-alias copied to clipboard
Can't make an alias with spaces
This is not working:
alias my command with spaces=commandnospaces
It creates alias: spaces=commandnospaces
+1
Could you help me to understand the real example?
Sure:
@hubot alias deploy staging=jenkins build My Staging Deployment Job
Maybe you can just work with quotes, like:
@hubot alias "deploy staging"="jenkins build My Staging Deployment Job"
And maybe allow multiple aliases in one command? First set up the aliases:
@hubot alias deploy=jenkins build
@hubot alias staging=My Staging Deployment Job
Then something like this:
@hubot deploy staging
results in both aliases being used and works like this:
@hubot jenkins build My Staging Deployment Job