Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't make an alias with spaces #1

Open
camilonova opened this issue Nov 24, 2014 · 4 comments
Open

Can't make an alias with spaces #1

camilonova opened this issue Nov 24, 2014 · 4 comments

Comments

@camilonova
Copy link

This is not working:

alias my command with spaces=commandnospaces

It creates alias: spaces=commandnospaces

@jangrewe
Copy link

jangrewe commented Mar 9, 2015

+1

@dtaniwaki
Copy link
Owner

Could you help me to understand the real example?

@jangrewe
Copy link

jangrewe commented Mar 9, 2015

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants