fetchspec

command
v0.7.0 Latest Latest
Warning

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

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

Documentation

Overview

Command fetchspec is the acquisition stage of the device-management SDK pipeline. It downloads Apple's schema repo (apple/device-management) at a pinned commit, parses every YAML spec, and writes the committed snapshot tree (metadata/specs/<category>/<name>.json) plus provenance.

Codegen (cmd/gendm) is offline and deterministic from the committed snapshots; moving to a new upstream commit is a deliberate, reviewed act (cmd/specdiff renders what changed).

go run ./device_management/cmd/fetchspec              # pinned commit
go run ./device_management/cmd/fetchspec -discover    # latest upstream commit
go run ./device_management/cmd/fetchspec -dir <path>  # offline: parse a local checkout

Jump to

Keyboard shortcuts

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