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

command

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package command provides read-only attachment owner-orphan inspection and bounded regeneration of declared image variants.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VariantDeclaration

func VariantDeclaration(construct func(foundation.Resolver) (*attachments.Manager, error)) (cli.Declaration, error)

VariantDeclaration registers the command in the ordinary CLI registry as "attachment-variants". The manager is resolved after boot.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

Command holds parsed attachment inspection options.

func Parse

func Parse(args []string, help io.Writer) (Command, error)

Parse reads attachment maintenance arguments and writes usage to help when requested.

func (Command) Run

func (c Command) Run(ctx context.Context, manager *attachments.Manager, out io.Writer) error

Run writes the requested owner-orphan or undeclared-name inspection using manager.

type VariantCommand

type VariantCommand struct {
	// contains filtered or unexported fields
}

VariantCommand regenerates a collection's declared image variants for every ready attachment, in bounded batches until the collection is exhausted.

func ParseVariants

func ParseVariants(args []string, help io.Writer) (VariantCommand, error)

ParseVariants validates the command before boot and performs no I/O.

func (VariantCommand) Run

func (c VariantCommand) Run(ctx context.Context, manager *attachments.Manager, out io.Writer) error

Run reports counts and failed operation IDs only, never file contents, storage keys or error text. Any failed attachment makes the command fail after the whole collection was processed.

Jump to

Keyboard shortcuts

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