Versions in this module Expand all Collapse all v1 v1.0.90 Aug 25, 2026 Changes in this version + func Preview[Args any, Data any](ctx context.Context, recorder *Recorder, identity command.Identity, ...) (*command.DryRun, error) + type Execution struct + Data Data + func Execute[Args any, Data any](ctx context.Context, recorder *Recorder, identity command.Identity, ...) (Execution[Data], error) + func RunWithFlags[Args any, Data any](ctx context.Context, recorder *Recorder, identity command.Identity, ...) (Execution[Data], error) + type RecordedFile struct + Artifact command.Artifact + Content []byte + Options command.DownloadOptions + SourceURL string + Target command.FileTarget + type Recorder struct + func New(testing testing.TB, responses ...Response) *Recorder + func (r *Recorder) AssertDryRunMatches(dryRun *command.DryRun) + func (r *Recorder) AssertScriptConsumed() + func (r *Recorder) CancelAfterRequest(number int) + func (r *Recorder) CommandContext(identity command.Identity) command.CommandContext + func (r *Recorder) DryRunContext(identity command.Identity) command.CommandContext + func (r *Recorder) ExecutionContext(parent context.Context) context.Context + func (r *Recorder) Files() []RecordedFile + func (r *Recorder) InputStageContext(identity command.Identity) command.CommandContext + func (r *Recorder) ReplyFile(method, path, contentType string, content []byte) *Recorder + func (r *Recorder) ReplyJSON(method, path string, data any) *Recorder + func (r *Recorder) ReplyURL(rawURL, contentType string, content []byte) *Recorder + func (r *Recorder) Requests() []command.RequestView + func (r *Recorder) ScopeChecks() [][]string + func (r *Recorder) SetPagination(options command.PaginationOptions) + func (r *Recorder) SetScopeError(err error) + func (r *Recorder) URLs() []string + type Response struct + func Fail(err error) Response + func Respond(data any) Response + func RespondFile(contentType string, content []byte) Response