[ ] There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it.
The command ns autocomplete enable doesn't work in the current version as the incorrect command is called to yargs to generate the script.
In addition the yargs script doesn't seem to work with the commands ns tns.
Also the existing script duplicates the contents of .tnsrc on enable/disable and it does not clean up what the previous implementation did.
What is the new behavior?
This should now implement ns autocomplete enable/disable so that it works for ns/tns as you would expect.
It cleans up the previous implementation and does not duplicate entries in .tnsrc on repeated enable/disable.
PR Checklist
What is the current behavior?
The command
ns autocomplete enable
doesn't work in the current version as the incorrect command is called to yargs to generate the script.In addition the yargs script doesn't seem to work with the commands
ns tns
.Also the existing script duplicates the contents of
.tnsrc
on enable/disable and it does not clean up what the previous implementation did.What is the new behavior?
This should now implement
ns autocomplete enable/disable
so that it works forns/tns
as you would expect. It cleans up the previous implementation and does not duplicate entries in.tnsrc
on repeated enable/disable.