Home / Function/ run() — spring-boot Function Reference

run() — spring-boot Function Reference

Architecture documentation for the run() function in InitCommand.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  915c99b9_e41b_61ce_ca83_5a7be98cbd9e["run()"]
  2fa7443b_009b_e341_6ee8_05fb32699cf1["generateReport()"]
  915c99b9_e41b_61ce_ca83_5a7be98cbd9e -->|calls| 2fa7443b_009b_e341_6ee8_05fb32699cf1
  d1df7bec_0533_534a_f995_1e45fc648390["generateProject()"]
  915c99b9_e41b_61ce_ca83_5a7be98cbd9e -->|calls| d1df7bec_0533_534a_f995_1e45fc648390
  8f3704bf_0516_ae8f_5ba1_34c8d06115d2["error()"]
  915c99b9_e41b_61ce_ca83_5a7be98cbd9e -->|calls| 8f3704bf_0516_ae8f_5ba1_34c8d06115d2
  6d62efc4_2b30_b980_aadc_f8e754508046["run()"]
  915c99b9_e41b_61ce_ca83_5a7be98cbd9e -->|calls| 6d62efc4_2b30_b980_aadc_f8e754508046
  style 915c99b9_e41b_61ce_ca83_5a7be98cbd9e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitCommand.java lines 209–228

		@Override
		protected ExitStatus run(OptionSet options) throws Exception {
			try {
				if (options.has(this.listCapabilities)) {
					generateReport(options);
				}
				else {
					generateProject(options);
				}
				return ExitStatus.OK;
			}
			catch (ReportableException ex) {
				Log.error(ex.getMessage());
				return ExitStatus.ERROR;
			}
			catch (Exception ex) {
				Log.error(ex);
				return ExitStatus.ERROR;
			}
		}

Domain

Subdomains

Frequently Asked Questions

What does run() do?
run() is a function in the spring-boot codebase.
What does run() call?
run() calls 4 function(s): error, generateProject, generateReport, run.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free