disco-scaffold

command
v0.31.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

disco-scaffold is a forward-only dev tool: it reads a provider's live upstream catalog (via the already-wired coverage.Provider.Fetch), subtracts the types disco already scans, and emits restype.Descriptor-shaped stubs for the *uncovered* types so a new scanner is born in the unified shape.

It never rewrites existing files. --write drops a self-contained <svc>_scanners.go into the provider package (refusing to clobber an existing one unless --force); without --write it prints the same content to stdout.

go run ./cmd/disco-scaffold gcp:artifactregistry
go run ./cmd/disco-scaffold aws:ec2 --regions us-east-1 --profile audit
go run ./cmd/disco-scaffold aws:qbusiness --write

The SDK->store.Resource field mapping and the resolver edges stay human judgment — the stub scanner returns (0,0,nil) with a TODO. Every upstream type already covered is logged, so the tool can never silently skip one.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL