[terminal] IJPL-220311 Refactor ShellCommandParserOptions

Make it an interface with a builder.

GitOrigin-RevId: 2e9a6de571330fa8e44843c160fe5f5b4677bd19
This commit is contained in:
Konstantin Hudyakov
2025-12-19 12:42:20 +00:00
committed by intellij-monorepo-bot
parent 0b149898aa
commit d6f1fc80e0
7 changed files with 103 additions and 33 deletions
@@ -19,7 +19,10 @@ class JavaShellCommandSpecsProvider : ShellCommandSpecsProvider {
}
private fun getSpecs(): ShellCommandSpec = ShellCommandSpec("java") {
parserOptions = ShellCommandParserOptions.create(flagsArePosixNonCompliant = true, optionsMustPrecedeArguments = true)
parserOptions = ShellCommandParserOptions.builder()
.flagsArePosixNonCompliant(true)
.optionsMustPrecedeArguments(true)
.build()
dynamicOptions { terminalContext ->
val javaContext = JavaShellCommandContext.create(terminalContext)