run() — spring-boot Function Reference
Architecture documentation for the run() function in HintCommand.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 459fe95a_0b67_ca20_ec86_da817d0b71b2["run()"] 9d0a96cd_7225_a1a4_7d58_1b34cca7b97f["run()"] 459fe95a_0b67_ca20_ec86_da817d0b71b2 -->|calls| 9d0a96cd_7225_a1a4_7d58_1b34cca7b97f f9215950_d964_cd3e_c9a7_2b942425eb41["showCommandHints()"] 459fe95a_0b67_ca20_ec86_da817d0b71b2 -->|calls| f9215950_d964_cd3e_c9a7_2b942425eb41 a7cc6a30_0aa7_e2ac_e4a0_ab96bb2280a3["showCommandOptionHints()"] 459fe95a_0b67_ca20_ec86_da817d0b71b2 -->|calls| a7cc6a30_0aa7_e2ac_e4a0_ab96bb2280a3 style 459fe95a_0b67_ca20_ec86_da817d0b71b2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/core/HintCommand.java lines 46–71
@Override
public ExitStatus run(String... args) throws Exception {
try {
int index = (args.length != 0) ? Integer.parseInt(args[0]) - 1 : 0;
List<String> arguments = new ArrayList<>(args.length);
for (int i = 2; i < args.length; i++) {
arguments.add(args[i]);
}
String starting = "";
if (index < arguments.size()) {
starting = arguments.remove(index);
}
if (index == 0) {
showCommandHints(starting);
}
else if (!arguments.isEmpty() && !starting.isEmpty()) {
String command = arguments.remove(0);
showCommandOptionHints(command, Collections.unmodifiableList(arguments), starting);
}
}
catch (Exception ex) {
// Swallow and provide no hints
return ExitStatus.ERROR;
}
return ExitStatus.OK;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does run() do?
run() is a function in the spring-boot codebase.
What does run() call?
run() calls 3 function(s): run, showCommandHints, showCommandOptionHints.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free