Documentation
¶
Overview ¶
Package generate contains types for language container's generate command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Context *Context
// This request is parsed from the generate-request.json file in
// the LibrarianDir of the context.
Request *message.Library
}
Config for the generate command. This holds the context (the directory paths) and the request parsed from the generate-request.json file.
type Context ¶
type Context struct {
// LibrarianDir is the path to the librarian-tool input directory.
// It is expected to contain the generate-request.json file.
LibrarianDir string
// InputDir is the path to the .librarian/generator-input directory from the
// language repository.
InputDir string
// OutputDir is the path to the empty directory where a language container writes
// its output.
OutputDir string
// SourceDir is the path to a complete checkout of the googleapis repository.
SourceDir string
}
Context holds the directory paths for the generate command. https://github.com/googleapis/librarian/blob/main/doc/language-onboarding.md#generate
Click to show internal directories.
Click to hide internal directories.