Skip to content

Allow inferring the alias of an extension CLI plugin from the root command name #41656

Open
@iocanel

Description

Description

Currently when a quarkus extension brings in a CLI plguin, the name of the plugin is configured in the extension metadata.
Extension developer need to align the alias used with the root command name. So, one needs to add the same information in two places.

It would be nice if there was a way to infer the alias from the root command name.

Challenges

However, this means that the CLI should download the CLI plugin, find the root command and get the information from there.
And this is something that most probably should be repeated on each invocation of quarkus --help and quarkus my-plugin xyz

On top of that we will have to deal with things like maven artifact downloading etc, that's now outsourced to jbang.

An alternative could be to produce some short of metadata at the time of building the CLI plugin that would be available to the extension. But I don't have something more concrete than that.

Implementation ideas

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    area/cliRelated to quarkus cli (not maven/gradle/etc.)area/jbangIssues related to when using jbang.dev with Quarkuskind/enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions