You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems half of the issue is not reproducible in 2.1.0-M3. When the help command is executed, I get the following result for Dynamic Commands:
2.1.0-M3
2.1.0-M5
Dynamic Commands
*authenticate: Authenticate with the system
blow-up: Blow Everything up
connect: Connect to the system
disconnect: Disconnect from the system
Dynamic Commands
disconnect: Disconnect from the system
authenticate: Authenticate with the system
blow-up: Blow Everything up
connect: Connect to the system
Notice how there is an * in the authenticate for 2.1.0-M3 indicating that it is initially disabled. However, this is not the case for 2.1.0-M5 . Note that I haven't tested the behavior in 2.1.0-M4.
Executing authenticate in 2.1.0-M3 works as expected, i.e.:
my-shell:>authenticate
Command 'authenticate' exists but is not currently available because you are not connected
Details of the error have been omitted. You can use the stacktrace command to print the full stacktrace.
Clarification for 2.1.0-M3:
By default, blowUp does not work properly in 2.1.0-M3. It turns out this is an error in the sample as there is no implementation for dangerousAvailability.
However, after adding implementation for dangerousAvailability, blowUp works as expected:
Given this information, it appears that ShellMethodAvailability and xxxAvailability are both not respected in 2.1.0-M5.
It would be great if someone could have a look at this.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
I was playing with dynamic commands using the spring shell samples (see https://github.com/spring-projects/spring-shell/blob/main/spring-shell-samples/src/main/java/org/springframework/shell/samples/standard/DynamicCommands.java) and I noticed that I cannot get it to work.
Below is the sample output form this example, built directly from
2.1.0-M5
branch:I added some logs in the
blowUp
command to printconnect
andauthenticate
and below is the result:It seems half of the issue is not reproducible in
2.1.0-M3
. When thehelp
command is executed, I get the following result forDynamic Commands
:Notice how there is an
*
in theauthenticate
for2.1.0-M3
indicating that it is initially disabled. However, this is not the case for2.1.0-M5
. Note that I haven't tested the behavior in2.1.0-M4
.Executing
authenticate
in2.1.0-M3
works as expected, i.e.:Clarification for 2.1.0-M3:
By default,
blowUp
does not work properly in2.1.0-M3
. It turns out this is an error in the sample as there is no implementation fordangerousAvailability
.However, after adding implementation for
dangerousAvailability
,blowUp
works as expected:Given this information, it appears that
ShellMethodAvailability
andxxxAvailability
are both not respected in2.1.0-M5
.It would be great if someone could have a look at this.
The text was updated successfully, but these errors were encountered: