Azure / azure-cli

Azure Command-Line Interface
MIT License
3.97k stars 2.95k forks source link

Add autocompletion for nushell #28652

Open TechWatching opened 5 months ago

TechWatching commented 5 months ago

Related command All commands

Describe the solution you'd like To have the same auto complete feature for nushell than there is already for other shell (bash, powershell)

Describe alternatives you've considered Implement myself a custom script to have auto complete, but it would never be up to date.

Additional context I am using nushell 👉https://www.nushell.sh/

yonzhan commented 5 months ago

Thank you for opening this issue, we will look into it.

bebound commented 5 months ago

I'm not familiar with nushell, It seems that it can use fish completer. az is supported by fish: https://github.com/fish-shell/fish-shell/blob/master/share/completions/az.fish https://github.com/fish-shell/fish-shell/blob/master/share/functions/__fish_argcomplete_complete.fish

Ref: https://www.nushell.sh/cookbook/external_completers.html#fish-completer

TechWatching commented 5 months ago

Yes you are right but that's not optimal as it requires to have another dependency: fish installed. I'm working on Windows so fish is not an option for me