bash-completion
bash-completion copied to clipboard
mn (Mininet network emulator): New completion.
bash-completion for the Mininet (mn) network emulator
Have you contacted mininet upstream to see if they would be interested in including the completion with mininet itself, instead of shipping it here?
Do the option argument lists need to be hardcoded, i.e. is there no command that could generate the valid values e.g. for --switch?
@scop yeah I tried, so far no any response, since this project contains so many useful completions of different tools, so that's the reason why I sent a PR here, BTW, people in this project may be much more professional in this part.
Currently, I didn't see any commands that it can generate the support controller list, that's why I hard coded there, unless you would like to parse mn -h, it's not a good idea for my own opion, since it won'
t change too much, I think we could just use the hard coded list, what do you think?
If there is a sane way/place to parse the arguments from, it should be done. If not, hardcode it, but in that case the completion may need more maintenance and may always be to some extent incorrect on systems that have mn with different accepted options.