CliSubprocessCore.CommandSpec (CliSubprocessCore v0.1.0)

Copy Markdown View Source

Resolved subprocess program plus any argv prefix that must precede provider arguments.

This lets core-owned provider resolution express launchers such as npx --yes --package @google/gemini-cli gemini ... while still projecting to a normal CliSubprocessCore.Command invocation for transport execution.

Summary

Types

t()

@type t() :: %CliSubprocessCore.CommandSpec{
  argv_prefix: [String.t()],
  program: String.t()
}

Functions

command_args(command_spec, args)

@spec command_args(t(), [String.t()]) :: [String.t()]

new(program, opts \\ [])

@spec new(
  String.t(),
  keyword()
) :: t()