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

Support "Smart Dashes" (emdash) in kubectl commands #9

Open
tantalic opened this issue Sep 3, 2016 · 2 comments
Open

Support "Smart Dashes" (emdash) in kubectl commands #9

tantalic opened this issue Sep 3, 2016 · 2 comments

Comments

@tantalic
Copy link

tantalic commented Sep 3, 2016

We manage all k8s objects in namespaces which this bot does not account for:

!kubectl get pods —namespace=slackbots

Results in:

Error from server: pods "—namespace=slackbots" not found

@dkapanidis
Copy link
Member

In Slack the double dashes are being transformed automatically to to different characters. You need to disable this feature (Smart Dashes) from the Slack UI.

Right click on the message textbox and uncheck Smart Dashes.

screen shot 2016-09-03 at 11 44 34 pm

@tantalic
Copy link
Author

tantalic commented Sep 5, 2016

@Spiddy that is certainly the cause of the issue and adjusting that setting does fix the issue for that particular user.

Given this is the default setting on OS X, I think it would make sense to detect and transform back to double dashes for !kubectl commands.

@tantalic tantalic changed the title Does not support namespaces Support "Smart Dashes" (emdash) in kubectl commands Sep 5, 2016
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

2 participants