Skip to content

CommandAvailability is not documented #1053

Closed
@The4thLaw

Description

@The4thLaw

The documentation at https://docs.spring.io/spring-shell/reference/commands/availability.html explains how one can achieve dynamic command availability.

However, it seems that the documented annotation is only applicable on @ShellMethod commands, i.e. using the legacy annotations.

The new @Command-based methods should apparently use @CommandAvailability and rely on the AvailabilityProvider functional interface.

Perhaps the documentation should, also in this case, make a distinction between legacy and recommended annotations.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions