internal

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package internal implements the llar command handlers.

The --json flag causes make and install to print a module result in JSON format. The JSON output corresponds to these Go types:

type moduleJSONResult struct {
	Path     string          `json:"path"`     // root module path
	Version  string          `json:"version"`  // root module version
	Dir      string          `json:"dir"`      // absolute root output directory
	Deps     []moduleJSONDep `json:"deps,omitempty"` // dependency artifacts
	Metadata string          `json:"metadata"` // build metadata for the root artifact
}

type moduleJSONDep struct {
	Path    string `json:"path"`    // dependency module path
	Version string `json:"version"` // dependency module version
	Dir     string `json:"dir"`     // absolute dependency output directory
}

These fields are part of the llar command's public JSON API. Existing fields must not be renamed, removed, or have their meaning changed. New fields may be added when the output contract is extended. The encoder and the JSON-specific tests live in module_output.go and module_output_test.go until this contract is moved to a shared package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

This section is empty.

Jump to

Keyboard shortcuts

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