PromptCommand Class — spring-boot Architecture
Architecture documentation for the PromptCommand class in PromptCommand.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/PromptCommand.java lines 29–52
public class PromptCommand extends AbstractCommand {
private final ShellPrompts prompts;
public PromptCommand(ShellPrompts shellPrompts) {
super("prompt", "Change the prompt used with the current 'shell' command. "
+ "Execute with no arguments to return to the previous value.");
this.prompts = shellPrompts;
}
@Override
public ExitStatus run(String... strings) throws Exception {
if (strings.length > 0) {
for (String string : strings) {
this.prompts.pushPrompt(string + " ");
}
}
else {
this.prompts.popPrompt();
}
return ExitStatus.OK;
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free