languagecontainer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package languagecontainer defines LanguageContainer interface and the Run function to execute commands within the container. This package should not have any language-specific implementation or Librarian CLI's implementation. TODO(b/447404382): Move this package to the https://github.com/googleapis/librarian GitHub repository once the interface is finalized.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, args []string, container *LanguageContainer) int

Run accepts an implementation of the LanguageContainer. The args parameter contains the command-line arguments passed to the container, without including the program name. Usually it's os.Args[1:].

Types

type LanguageContainer

type LanguageContainer struct {
	Generate     func(context.Context, *generate.Config) error
	ReleaseStage func(context.Context, *release.Config) (*message.ReleaseStageResponse, error)
}

LanguageContainer defines the functions for language-specific container operations.

Directories

Path Synopsis
Package generate contains types for language container's generate command.
Package generate contains types for language container's generate command.
Package release contains types for language container's release command.
Package release contains types for language container's release command.

Jump to

Keyboard shortcuts

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