Skip to content

Feature request: ability to prefix all commands in a ShellComponent #564

Closed
@klr8

Description

@klr8

It would be useful to have the ability to prefix all commands defined in a ShellComponent.
For instance:

@ShellComponent(prefix = "backend")
public class BackendCommands {

    @ShellMethod("Connect to the backend.")
    public void connect(String token) throws Exception {
        ...
    }
}

This would result in a "backend.connect" command.

A prefix ability would allow more consistency in command naming. For instance, you could also have "db.connect" and "kibana.connect" commands. Furthermore, using command line completion after typing the "backend" prefix would give you a nice overview of all backend related commands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions