hubot-alias icon indicating copy to clipboard operation
hubot-alias copied to clipboard

Can't make an alias with spaces

Open camilonova opened this issue 10 years ago • 4 comments

This is not working:

alias my command with spaces=commandnospaces

It creates alias: spaces=commandnospaces

camilonova avatar Nov 24 '14 21:11 camilonova

+1

jangrewe avatar Mar 09 '15 09:03 jangrewe

Could you help me to understand the real example?

dtaniwaki avatar Mar 09 '15 15:03 dtaniwaki

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"

jangrewe avatar Mar 09 '15 16:03 jangrewe

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

jangrewe avatar Mar 10 '15 10:03 jangrewe