Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for subcommands in CLI #429

Closed
oleg-nenashev opened this issue Nov 23, 2020 · 0 comments
Closed

Add support for subcommands in CLI #429

oleg-nenashev opened this issue Nov 23, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@oleg-nenashev
Copy link
Member

Jenkinsfile Runner includes more options and behaviors, and it is difficult to maintain it with a single-level CLI interface. I suggest introducing sub-commands so that we can easily evolve CLI and isolate commands so that it is easier to use and maintain JFR. Examples of commands:

  • jenkinsfile-runner [run] [args...] for common mode
  • jenkinsfile-runner cli [args...] for CLI
  • jenkinsfile-runner manage-plugins [args...] for the plugin manager
  • jenkinsfile-runner help for the top-level help
  • jenkinsfile-runner version for the version info

Acceptance criteria:

  • There is a two-level CLI implemented. It might require switching from args4j to another lib
  • It is possible to add new commands to the bootstrap
  • Nice2have: It is possible to add more sub-commands from classpath (e.g. via declaring a system property or an annotation)

P.S: This is a spin-off of the conversation with @literalplus in #213 : #213 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant