resolveConfigurations abstract method
CommandContext<O, T>
resolveConfigurations(
- Iterable<
String> args, - Map<
String, String> ? env, - ContextProvider provider, {
- required CommandRunMode runMode,
Resolves the configurations for each command on the command line.
Returns the chain of resolved command contexts for the commands on the
command line. The first context is for the root command, and has the same
option type O as the runner.
Throws UsageException on configuration input errors including command line arguments, environment variables, and configuration files.
When runMode is CommandRunMode.completion, those errors are left on
the contexts and no exception is thrown, so a command line that is not
finished can still be completed. runMode is recorded on every context
in the chain.
Implementation
CommandContext<O, T> resolveConfigurations(
final Iterable<String> args,
final Map<String, String>? env,
final ContextProvider provider, {
required final CommandRunMode runMode,
});