Package studio.mevera.imperat
Class CommandLineConfigBuilder
java.lang.Object
studio.mevera.imperat.ConfigBuilder<ConsoleCommandSource,CommandLineImperat,CommandLineConfigBuilder>
studio.mevera.imperat.CommandLineConfigBuilder
public final class CommandLineConfigBuilder
extends studio.mevera.imperat.ConfigBuilder<ConsoleCommandSource,CommandLineImperat,CommandLineConfigBuilder>
Configuration builder for CommandLineImperat instances.
This builder provides a fluent API for configuring and customizing the behavior
of Imperat commands in a command-line interface environment.
The builder automatically sets up:
- Basic source resolvers for PrintStream handling
- CommandContext resolvers for dependency injection
- Simple configuration suitable for CLI applications
- No complex platform-specific features (kept minimal)
Usage Example:
CommandLineImperat imperat = CommandLineImperat.builder(System.in)
.build();
- Since:
- 1.0
- See Also:
-
Field Summary
Fields inherited from class studio.mevera.imperat.ConfigBuilder
config -
Method Summary
Modifier and TypeMethodDescription@NotNull CommandLineImperatbuild()Builds the configured CommandLineImperat instance.Methods inherited from class studio.mevera.imperat.ConfigBuilder
annotationReplacer, applyOnConfig, argType, argTypeHandler, commandPrefix, contextArgumentProvider, contextArgumentProviderFactory, contextFactory, defaultSuggestionProvider, dependencyResolver, eventBus, exceptionHandler, globalCoordinator, globalDefaultPathwayBuilder, handleMiddleOptionalArgSkipping, helpCoordinator, instanceFactory, overlapOptionalParameterSuggestions, permissionChecker, placeholder, response, response, returnResolver, sourceProvider, throwablePrinter, visit
-
Method Details
-
build
Builds the configured CommandLineImperat instance.- Specified by:
buildin classstudio.mevera.imperat.ConfigBuilder<ConsoleCommandSource,CommandLineImperat, CommandLineConfigBuilder> - Returns:
- a new CommandLineImperat instance with the specified configuration
-