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

tab-completion support in the inspec command line and in the inspec shell :) #607

Closed
aaronlippold opened this issue Mar 31, 2016 · 4 comments
Milestone

Comments

@aaronlippold
Copy link
Collaborator

Tab-completion ... at least limited support may be good for the release.

I will see if I can grok bash-complete and add it in.

@chris-rock
Copy link
Contributor

+1 on that feature!

@chris-rock chris-rock added this to the 1.0.0 milestone Jul 26, 2016
@chris-rock chris-rock modified the milestones: 0.30.0, 1.0.0 Aug 8, 2016
@chris-rock
Copy link
Contributor

We should at least target ZSH and Bash. Not sure if we could find a way to get tab completion for Powershell?

cc @ksubrama

@stevendanna stevendanna self-assigned this Aug 8, 2016
@ksubrama
Copy link

ksubrama commented Aug 8, 2016

As one idea of possibly supporting this in powershell, we can write cmdlet wrappers to inspec and load it as a powershell module. Powershell will try to tab complete cmdlet parameters but this means replicating the parser's logic in a cmdlet and maintaining that. Also there are some argument parsing and quoting issues between powershell and ruby on windows. See the comment block below for the chef powershell wrappers on windows which have been a mixed success as far as I can tell.

https://github.com/chef/chef/blob/master/distro/powershell/chef/chef.psm1#L213-L273

@chris-rock
Copy link
Contributor

We could also think about reusing our bash completion for https://github.com/mridgers/clink

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

4 participants