Auto-complete soda CLI commands #296
Comments
If you are using bash this should work: Can you try it out? Reference: https://click.palletsprojects.com/en/7.x/bashcomplete/ |
I'm using zsh. I tried adding |
Correct. Soda is not currently meant to be a globally installed CLI toolkit, but to keep it contained in a virtual environment. You might want to propose to create binary packages later on which we can install independently from the other tools in the target computer by having separate dependencies (maybe even separate python?) and then you can add that line in your shell config. For now the only thing I can say that your |
This works as advertised, Using peen and activating the proper venv with soda command. soda-sql on main via 🐍 v3.8.5 (soda-sql-main)
❯ eval "$(_SODA_COMPLETE=source_zsh soda)"
soda-sql on main via 🐍 v3.8.5 (soda-sql-main)
❯ soda <TAB>
analyze -- Analyzes tables in the warehouse and creates...
create -- Creates a new warehouse.yml file and prepares...
scan -- Computes all measurements and runs all tests... I don't think there is more we can do, because the user can configure it themselves. |
Works indeed! Great thx :) |
We could document it though for the users so they know it is supported? |
@milanaleksic makes sense. Although it's fairly limited now. It only works on the commands and not on the optional parameters I think |
Is your feature request related to a problem? Please describe.
I'm constantly trying to auto-complete soda commands by pressing "tab".
Describe the solution you'd like
Auto-complete soda-commands.
Additional context
This is definitely not a crucial feature request but could be a nice-to-have in the future 😃
Soda SQL Version:
Soda CLI version 2.0.0b21
The text was updated successfully, but these errors were encountered: