disco

command
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

disco

This directory contains a tool for working with Google's Discovery API and Discovery Format, including the ability to convert Discovery Format descriptions to OpenAPI.

Installation:

    go install github.com/google/gnostic/cmd/disco

Usage:

    disco help

Prints a list of commands and options.

    disco list [--raw]

Calls the Google Discovery API and lists available APIs. The --raw option prints the raw results of the Discovery List APIs call.

    disco get [<api>] [<version>] [--raw] [--openapi2] [--openapi3] [--features] [--schemas] [--all]

Gets the specified API and version from the Google Discovery API. <version> can be omitted if it is unique. The --raw option saves the raw Discovery Format description. The --openapi2 option rewrites the API description in OpenAPI v2. The --openapi3 option rewrites the API description in OpenAPI v3. The --features option displays the contents of the features sections of discovery documents. The --schemas option displays information about the schemas defined for the API. The --all option runs the other associated operations for all of the APIs available from the Discovery Service. When --all is specified, <api> and <version> should be omitted.

    disco <file> [--openapi2] [--openapi3] [--features] [--schemas]

Applies the specified operations to a local file. See the get command for details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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