gcloud

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package gcloud provides a code generator for gcloud commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(model *api.API, outdir string) error

Generate is the package entry point. It builds the model, renders main.go, writes it, then renders any other generated files via language.GenerateFromModel.

Types

type CLIModel added in v0.12.0

type CLIModel struct {
	Groups []Group
}

CLIModel represents the data structure for the template.

type Command

type Command struct {
	Name  string
	Usage string
}

Command represents a leaf command.

type Group added in v0.12.0

type Group struct {
	Name      string
	Usage     string
	Subgroups []Subgroup
	Commands  []Command
}

Group represents a gcloud command group.

type Subgroup added in v0.12.0

type Subgroup struct {
	Name     string
	Usage    string
	Commands []Command
}

Subgroup represents a nested command group.

Jump to

Keyboard shortcuts

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