Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 31 Imported by: 0

Documentation

Overview

Package cmd contains the cobra-rooted CLI for `disco`. Each file hosts one subcommand; cross-cutting helpers live in helpers.go.

Index

Constants

This section is empty.

Variables

View Source
var Version = resolveVersion()

Version is set at build time via -ldflags "-X github.com/icearp/disco-cli/cmd.Version=<tag>". Defaults to "dev" for local builds, but `go build .` inside a git checkout substitutes the VCS revision via build-info, so the stamp propagated to snapshot manifests + SARIF tool.driver.version stays traceable. Falls back to "dev" only when no VCS info is available (e.g. `go test`, `go install` from a tarball).

Functions

func Execute

func Execute(ctx context.Context)

Execute runs the root command. ctx carries SIGINT/SIGTERM cancellation from main; cobra propagates it to the subcommand via cmd.Context(), so a long-running scan unwinds cleanly (running its deferred WAL checkpoint) on interrupt instead of being hard-killed.

Types

This section is empty.

Directories

Path Synopsis
aws-resolver-audit walks every AWS resource's AttributesJSON, extracts ARN and bare-ID references to other scanned types, then diffs the proposed (source_type, target_type) pairs against edges already persisted in `relationships`.
aws-resolver-audit walks every AWS resource's AttributesJSON, extracts ARN and bare-ID references to other scanned types, then diffs the proposed (source_type, target_type) pairs against edges already persisted in `relationships`.
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.
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.

Jump to

Keyboard shortcuts

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