gen

command
v0.17.0 Latest Latest
Warning

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

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

Documentation

Overview

Command gen records, under cliinstall/testdata/snapshots/, a snapshot of each catalog CLI's real published release asset list and (where one exists) its real Homebrew cask file. TestCatalogAssetNamingMatchesRelease Snapshots and TestCatalogCaskOSMatchesCaskSnapshots (in the cliinstall package) read only the committed output of this program; neither they nor any other test invokes gen itself, so the test suite stays network-free (cli-install#req:no-network-in-tests) while the snapshots they check against stay traceable to a real "gh" invocation.

Run it by hand, from the module root, whenever a catalog entry's release naming changes or a periodic refresh is wanted:

go generate ./cliinstall/...

It shells out to the "gh" CLI, which must already be authenticated (`gh auth status`).

Jump to

Keyboard shortcuts

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