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

addCommand() — spring-boot Function Reference

Architecture documentation for the addCommand() function in CommandRunner.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  48695443_ab03_c0ba_5509_a65981075210["addCommand()"]
  a2c16583_5a36_a7dd_517c_6810d69952d6["main()"]
  a2c16583_5a36_a7dd_517c_6810d69952d6 -->|calls| 48695443_ab03_c0ba_5509_a65981075210
  1975b440_a0fa_58cb_acf6_cbc63ca55613["addCommands()"]
  1975b440_a0fa_58cb_acf6_cbc63ca55613 -->|calls| 48695443_ab03_c0ba_5509_a65981075210
  a0875f38_348f_d67f_efc8_22a89829015a["createCommandRunner()"]
  a0875f38_348f_d67f_efc8_22a89829015a -->|calls| 48695443_ab03_c0ba_5509_a65981075210
  style 48695443_ab03_c0ba_5509_a65981075210 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandRunner.java lines 87–90

	public void addCommand(Command command) {
		Assert.notNull(command, "'command' must not be null");
		this.commands.add(command);
	}

Domain

Subdomains

Frequently Asked Questions

What does addCommand() do?
addCommand() is a function in the spring-boot codebase.
What calls addCommand()?
addCommand() is called by 3 function(s): addCommands, createCommandRunner, main.

Analyze Your Own Codebase

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

Try Supermodel Free