How to set filecompleter for every command arguments in java jline ConsoleReader? -


i need add file names completer every command parameters.

consolereader consolereader = new consolereader(); consolereader.addcompleter(new filenamecompleter()); consolereader.addcompleter(new argumentcompleter(new filenamecompleter())); 

this completes first word (the command name). how should add argument completer?


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -