compose

command
v1.41.0 Latest Latest
Warning

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

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

Documentation

Overview

Command compose is the command line tool of the compose module.

Install it with

go install github.com/vanclief/compose/cmd/compose@latest

The reference subcommand renders the API reference page of an OpenAPI spec, optionally showing what changed since a base spec, to a file, to stdout, or from a local HTTP server that re-renders on every request:

compose reference -head openapi.yaml -base previous.yaml -out page.html
compose reference -head openapi.yaml -base previous.yaml -serve 127.0.0.1:8090

The descriptions subcommand writes the doc comments of the Go types under the directories given, and of their fields, as the JSON file the route registry loads with api.Descriptions, to a file or to stdout:

compose descriptions -out descriptions.json .

Exit codes are 0 on success, 1 on a runtime error and 2 on a usage error.

Jump to

Keyboard shortcuts

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