CLIArgumentBuilder

works.iterative.claude.core.cli.CLIArgumentBuilder

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def buildArgs(options: QueryOptions): List[String]

Converts QueryOptions into list of CLI arguments for Claude Code subprocess

Converts QueryOptions into list of CLI arguments for Claude Code subprocess

Attributes

def buildQueryArgs(options: QueryOptions): List[String]

The full argument list for a one-shot query: stream-json output, the configured options, and the prompt.

The full argument list for a one-shot query: stream-json output, the configured options, and the prompt.

A query carrying structured input reads a content-block array from stdin instead of taking a prompt argument, so the person's words and the context the application attached stay separate all the way to the transcript. A plain query keeps the trailing -- prompt.

Attributes

def buildSessionArgs(options: SessionOptions): List[String]

Converts SessionOptions into list of CLI arguments for a Claude Code streaming session subprocess. Always prepends the required streaming flags: --print, --input-format stream-json, --output-format stream-json. Does not append a trailing prompt argument.

Converts SessionOptions into list of CLI arguments for a Claude Code streaming session subprocess. Always prepends the required streaming flags: --print, --input-format stream-json, --output-format stream-json. Does not append a trailing prompt argument.

Attributes