tj/commander.js

provide shell completions

Closed this issue · 2 comments

Argument parser frameworks usually can generate shell completions. I've searched the repo for answers but I couldn't find any obvious solutions with most solutions outdated/not working anymore. For instance I think https://www.npmjs.com/package/commander-completion is outdated ?
Is there hope to have native support.

Is there any other similar library that supports shell completion in the node ecosystem ?

Commander does not currently support command-line completion. It is a reasonable amount of work to generate the completions in code, and then there is shell and platform specific setup to invoke the completions.

Related: #385 #907

Is there any other similar library that supports shell completion in the node ecosystem ?

I have not seen a currently maintained completion library which integrates nicely with Commander. (Years ago, I did similar research and ended up writing my own support which was sufficient for my limited needs.)

#907 worked by turning the program structure into an omelette template, and using omelette for the completion handling.

thanks for the heads up. This all seems to complex for my needs. Let's clear the tracker :)