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 Type
    Method
    Description
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait