package com.xfestudio.xfeservermanager.api.command;
import com.xfestudio.xfeservermanager.api.util.ApiChecks;
import java.util.List;
import java.util.Map;
/** Input offered to a semantic adapter after the platform dispatcher has parsed a command. */
public record CommandAnalysisRequest(
String rawInput,
String commandId,
List<String> commandPath,
Map<String, String> parsedArguments,
List<String> nestedRawCommands
) {
public CommandAnalysisRequest {
rawInput = ApiChecks.notBlank(rawInput, "rawInput");
commandId = CommandNames.canonicalize(commandId);
commandPath = ApiChecks.immutableList(commandPath, "commandPath");
parsedArguments = ApiChecks.immutableMap(parsedArguments, "parsedArguments");
nestedRawCommands = ApiChecks.immutableList(nestedRawCommands, "nestedRawCommands");
}
}
package com.xfestudio.xfeservermanager.api.command;
import com.xfestudio.xfeservermanager.api.util.ApiChecks;
import java.util.List;
import java.util.Map;
/** Input offered to a semantic adapter after the platform dispatcher has parsed a command. */
public record CommandAnalysisRequest(
String rawInput,
String commandId,
List<String> commandPath,
Map<String, String> parsedArguments,
List<String> nestedRawCommands
) {
public CommandAnalysisRequest {
rawInput = ApiChecks.notBlank(rawInput, "rawInput");
commandId = CommandNames.canonicalize(commandId);
commandPath = ApiChecks.immutableList(commandPath, "commandPath");
parsedArguments = ApiChecks.immutableMap(parsedArguments, "parsedArguments");
nestedRawCommands = ApiChecks.immutableList(nestedRawCommands, "nestedRawCommands");
}
}