Help us shape the future of Go! Take the 2026 Go Developer Survey

packagecmd

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

NewCommand returns the root "d8 package" command. Thin adapter so the rest of d8-cli (cmd/d8/root.go) can register via the standard NewCommand() entry point used by other built-ins; the actual command tree lives under pkg/cmd to mirror the original d8-package-plugin layout.

Two things from the upstream plugin are deliberately left out: its standalone entry point (cmd/package/main.go) and the "version" subcommand, whose value is injected by the plugin's own ldflags. d8 reports its version itself.

Vendored from d8-package-plugin v0.0.31 (8899c68). Keep this in sync when re-syncing internal/, pkg/ and templates/ from upstream.

Types

This section is empty.

Directories

Path Synopsis
internal
packages/values/schema/defaults
Package defaults synthesizes an example value map from an OpenAPI schema.
Package defaults synthesizes an example value map from an OpenAPI schema.
packages/values/schema/reggen
Package reggen produces example strings that match a Perl-flavored regular expression.
Package reggen produces example strings that match a Perl-flavored regular expression.
tools/iconutil
Package iconutil discovers the package icon at the package root and exposes its on-disk and decoded properties as a single Icon value.
Package iconutil discovers the package icon at the package root and exposes its on-disk and decoded properties as a single Icon value.
verify/lint/doc
Package doc serves the reference documentation for the verify linters and their rules, as printed by `package doc`.
Package doc serves the reference documentation for the verify linters and their rules, as printed by `package doc`.
verify/lint/linters/icon
Package icon validates package-icon content (format, size, dimensions).
Package icon validates package-icon content (format, size, dimensions).
verify/lint/linters/openapi
Package openapi validates the OpenAPI schemas a package ships under openapi/.
Package openapi validates the OpenAPI schemas a package ships under openapi/.
verify/lint/linters/oss
Package oss validates optional oss.yaml package metadata.
Package oss validates optional oss.yaml package metadata.
verify/lint/linters/package
Package pkglint holds the linter that inspects the package as an artifact: the shape of its root, and the metadata that describes it.
Package pkglint holds the linter that inspects the package as an artifact: the shape of its root, and the metadata that describes it.
verify/lint/settings
Package settings maps the on-disk .pkglint.yaml document onto typed configuration and converts it into runtime-ready linter severities.
Package settings maps the on-disk .pkglint.yaml document onto typed configuration and converts it into runtime-ready linter severities.
pkg
cmd

Jump to

Keyboard shortcuts

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