bash-completion icon indicating copy to clipboard operation
bash-completion copied to clipboard

mn (Mininet network emulator): New completion.

Open PeterDaveHello opened this issue 9 years ago • 3 comments

bash-completion for the Mininet (mn) network emulator

PeterDaveHello avatar Jul 28 '16 09:07 PeterDaveHello

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 avatar Aug 04 '16 15:08 scop

@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?

PeterDaveHello avatar Aug 05 '16 07:08 PeterDaveHello

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.

scop avatar Aug 05 '16 13:08 scop