CommandAvailability is not documented #1053
Labels
area/documentation
Belongs to documentation
branch/3.2.x
Issue for a branch
for/backport
For backporting
Milestone
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 theAvailabilityProvider
functional interface.Perhaps the documentation should, also in this case, make a distinction between legacy and recommended annotations.
The text was updated successfully, but these errors were encountered: