Skip to content

[core] Consolidate PMD CLI into a single command #2234

@oowekyala

Description

@oowekyala

I think it would be nicer to have a single command pmd with various subcommands, instead of shipping a run.sh + 5 batch scripts. Eg pmd designer, pmd ast-dump, pmd run (or just pmd as the default command?). We would then only need a pmd script for bash and pmd.bat for windows. This is probably would make it easier to setup (no need to define an alias, less risk for conflicts with other programs). Having one JCommander that knows about all subcommands would also probably improve the documentation/ usage text. Useful to know that PicoCLI can also generate bash completion scripts, and this would be made simpler with a single entry point.

Wdyt? How are you setting up PMD locally, with an alias for run.sh, different aliases for interesting subcommands, both? I do both, but my aliases are ugly, which is why I'd appreciate the added consistency

Metadata

Metadata

Assignees

Labels

an:enhancementAn improvement on existing features / rulesin:cliAffects the PMD Command Line Interface

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions