GeminiCliSdk.Command (gemini_cli_sdk v0.2.0)

Copy Markdown View Source

Synchronous Gemini command helpers built on the shared core command lane.

Summary

Types

run_opt()

@type run_opt() ::
  {:timeout, non_neg_integer() | :infinity}
  | {:stdin, iodata()}
  | {:cd, String.t()}
  | {:env, map() | keyword()}
  | {:execution_surface,
     CliSubprocessCore.ExecutionSurface.t() | map() | keyword()}

Functions

run(args, opts \\ [])

@spec run([String.t()], [run_opt()]) ::
  {:ok, String.t()} | {:error, GeminiCliSdk.Error.t()}

run(command, args, opts)

@spec run(CliSubprocessCore.CommandSpec.t(), [String.t()], [run_opt()]) ::
  {:ok, String.t()} | {:error, GeminiCliSdk.Error.t()}