Re: Future of Jenkins CLI apps: args4j vs. picocli or other CLI libs

2020-11-26 Thread Oleg Nenashev
Thanks to everyone for the feedback! I have started migrating Jenkinsfile Runner. Just in case you are curious, this is a simple pull request: https://github.com/jenkinsci/jenkinsfile-runner/pull/432 . I also have a working PoC for sub-commands, but I will deliver it separately due to a signif

Re: Future of Jenkins CLI apps: args4j vs. picocli or other CLI libs

2020-11-26 Thread Manuel Ramón León Jiménez
Hi. Use existing, best maintained, more-future-ready solutions as much as possible. Avoid doing business that it's not our business. Just take into account the status of every possibility to choose the best if possible. Status ~ security vulnerabilities, regularly maintained, current users, ... +

Re: Future of Jenkins CLI apps: args4j vs. picocli or other CLI libs

2020-11-23 Thread Oleg Nenashev
Yup, updating CLICommand in the core is not in the table. Too much effort with low benefit, CLICommand implementation in Jenkins is already a "sub-command" from the user and developer standpoint. When I mentioned Jenkins core, I rather meant the default "java -jar jenkins.war" entry point, and a s

Re: Future of Jenkins CLI apps: args4j vs. picocli or other CLI libs

2020-11-23 Thread Jesse Glick
picocli seems appropriate for new development. It is integrated with Quarkus, too. I doubt we would want to rewrite existing Jenkins features using args4j; in particular, `CLICommand` hard-codes it (we could not switch compatibly). -- You received this message because you are subscribed to the Go

Re: Future of Jenkins CLI apps: args4j vs. picocli or other CLI libs

2020-11-23 Thread timja...@gmail.com
+100 to moving to picocli On Monday, 23 November 2020 at 21:02:06 UTC msi...@cloudbees.com wrote: > I'd be hugely in favor of using picocli. It's what I use in my own CLI > tools, and the original author of the library is someone I know and > have worked on OSS projects with (Log4j2 in particular

Re: Future of Jenkins CLI apps: args4j vs. picocli or other CLI libs

2020-11-23 Thread Matt Sicker
I'd be hugely in favor of using picocli. It's what I use in my own CLI tools, and the original author of the library is someone I know and have worked on OSS projects with (Log4j2 in particular) in the past. I'm generally in favor of migrating to maintained libraries, especially if it means maintai

Future of Jenkins CLI apps: args4j vs. picocli or other CLI libs

2020-11-23 Thread Oleg Nenashev
Hi all, I am currently working on supporting sub-commands in Jenkinsfile Runner (issue #429 ). Apart from JFR, the Plugin Installation Manager Tool is also a component which implements multiple commands at the moment, and hence could bene