ibilley7 commented on issue #4808: URL: https://github.com/apache/accumulo/issues/4808#issuecomment-2967672885
There are two different approaches I am considering for this ticket: 1. Hard-code all options and commands. Would require updates whenever the accumulo commands are changed, added, or removed, but has a relatively simple implementation. 2. Create a list-commands option through the Main.java file that would called before any auto-completions are done, which will list all commands and their various sub commands and options. These commands would be extracted and stored in order to construct the calls to compgen and complete functions. This approach is more difficult and could possibly be more resource intensive than the first approach, but would take less to maintain across future versions, and would likely be compatible across different versions. Any feedback on the approaches and about which direction I should go in would be much appreciated. I also have a question: is there any documentation or release notes that document changes to the commandline options between different versions of Accumulo? If I proceed with the hard-coding approach, it would useful to know if bash completion could work for older version of Accumulo. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
