CursorCliSdk.CLI (CursorCliSdk v0.1.0)

Copy Markdown View Source

Cursor Agent CLI command resolution and invocation rendering.

Summary

Functions

build_env(options)

@spec build_env(CursorCliSdk.Options.t()) :: map()

build_invocation(opts)

@spec build_invocation(keyword()) ::
  {:ok, CliSubprocessCore.Command.t()} | {:error, term()}

build_session_options(prompt, options, opts \\ [])

@spec build_session_options(String.t(), CursorCliSdk.Options.t(), keyword()) ::
  keyword()

command_args(command, args)

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

resolve(opts \\ [])

@spec resolve(keyword()) ::
  {:ok, CliSubprocessCore.CommandSpec.t()} | {:error, CursorCliSdk.Error.t()}