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

Serverless plugin not added to autocomplete when installed #96

Closed
GeeH opened this issue Aug 6, 2019 · 7 comments
Closed

Serverless plugin not added to autocomplete when installed #96

GeeH opened this issue Aug 6, 2019 · 7 comments
Labels
type: question question directed at the library

Comments

@GeeH
Copy link

GeeH commented Aug 6, 2019

Issue Summary

When installing the twilio-labs\plugin-serverless installs the plugin correctly except it does not get added to my bash autocomplete. Checking the file at ~/.twilio-cli/autocomplete/functions/bash/twilio.bash does not show the serverless commands added.

All other autocompletion works, including the twilio-labs/plugin-watch plugin.

Steps to Reproduce

On a Mac using bash:

  1. Install the autocomplete functionality. I modified the twilio autocomplete command outpit slightly as I use bash_profile:
    printf "$(twilio autocomplete:script bash)" >> ~/.bash_profile
  2. Reload the bash_profile file using source ~/.bash_profile
  3. Autocomplete works as intended
  4. Install the serverless plugin using twilio plugins:install @twilio-labs/plugin-serverless
  5. Autocomplete still works, but serverless is not able to be autocompleted

I also tried repeating steps 1 and 2 after installing the plugin but it did not fix the problem

Technical details:

  • twilio-cli Version: twilio-cli/1.4.1 darwin-x64 node-v10.16.0
  • Node.js Version: v12.4.0
  • MacOS 10.14.6
  • iTerm 2 Bash
@childish-sambino
Copy link
Contributor

The autocomplete command must be run after each plugin install, plugin update, or CLI update. I don’t think this is captured in the docs.

@GeeH
Copy link
Author

GeeH commented Aug 6, 2019

I did mention that I tried re-running the autocomplete command after installing the plugin. If it helps you can find me on Twilio slack "ghockin".

@childish-sambino
Copy link
Contributor

Also, on zsh you need to open a new tab or terminal. Try this for bash.

@GeeH
Copy link
Author

GeeH commented Aug 6, 2019

Thanks for the suggestion, I closed my terminal and no joy. I don't think reloading the bash_profile will help as the command is not being added to the twilio.bash file which I believe is being used for the suggestions?

@childish-sambino
Copy link
Contributor

Ack. I usually use zsh so haven’t played around much with the bash autocomplete. I’ll try to recreate when I’m at the desk.

@GeeH
Copy link
Author

GeeH commented Aug 6, 2019

I totally understand it's a busy time this week :D - please hit me up on Slack if you want me to screen share or anything.

@childish-sambino
Copy link
Contributor

The command twilio autocomplete is what actually builds the auto-complete cache based on the current version of the CLI and plugins.

Run this command after each plugin install/uninstall/update and CLI update in order to get the most up-to-date auto-complete values.

@childish-sambino childish-sambino added the type: question question directed at the library label Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question question directed at the library
Projects
None yet
Development

No branches or pull requests

2 participants